Skip to content

Instantly share code, notes, and snippets.

@mneuhaus
Created October 2, 2013 14:18
Show Gist options
  • Save mneuhaus/6794498 to your computer and use it in GitHub Desktop.
Save mneuhaus/6794498 to your computer and use it in GitHub Desktop.
TYPO3 CMS Frontend Plugin
<?php
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Company.' . $_EXTKEY,
'ExtensionName',
array(
'Foo' => 'bar, ...',
),
// non-cacheable actions
array(
'Foo' => 'bar, ...',
)
);
?>
<?php
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
$_EXTKEY,
'ExtensionName',
'ExtensionName'
);
?>
<?php
namespace Company\ExtensionName\Controller;
/***************************************************************
* Copyright notice
*
* (c) 2013 Marc Neuhaus <[email protected]>, Famelo OHG
*
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
*
*
* @license http://www.gnu.org/licenses/gpl.html GNU General Public License, version 3 or later
*
*/
class FooController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController {
/**
* action list
*
* @return void
*/
public function barAction() {
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment