Skip to content

Instantly share code, notes, and snippets.

View jaguerra's full-sized avatar

Jose Antonio Guerra jaguerra

  • Madrid
View GitHub Profile
@jaguerra
jaguerra / Some_Controller.php
Created July 10, 2012 09:19
TYPO3 Extbase: Trying to set defaultPid for actions/controllers/plugins not in the current action
protected function setDestinationPidForAction($pid, $actionName, $controllerName = null, $extensionName = null){
if($extensionName === null){
$extensionName = $this->extensionName;
}
if($controllerName === null){
$controllerName = $this->request->getControllerName();
}
$pluginName = Tx_Extbase_Utility_Extension::getPluginNameByAction($extensionName, $controllerName, $actionName);
$frameworkConfiguration = $this->configurationManager->getConfiguration(Tx_Extbase_Configuration_ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK, $extensionName, $pluginName);