Advertisement
einpraegsam

Untitled

Aug 23rd, 2011
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.11 KB | None | 0 0
  1.  
  2.  
  3.     /**
  4.      * Initializes the current action
  5.      *
  6.      * @return void
  7.      */
  8.     protected function initializeAction() {
  9.         $this->piVars = $this->request->getArguments();
  10.  
  11.         // error if no storagePid
  12.         $configuration = $this->configurationManager->getConfiguration(Tx_Extbase_Configuration_ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK);
  13.         if (empty($configuration['persistence']['storagePid'])) {
  14.             $this->flashMessageContainer->add($this->extensionName . ': No Storage PID given. Please add a storage page in the plugin or constants!');
  15.         }
  16.         // error if no staticTemplate
  17.         if (!isset($configuration['settings']['staticTemplate'])) {
  18.             $this->flashMessageContainer->add($this->extensionName . ': TypoScript Template is missing. Please include the static template!');
  19.         }
  20.         // error if no mode selected
  21.         if (!isset($this->settings['flexform']['mode'])) {
  22.             $this->flashMessageContainer->add($this->extensionName . ': Please select a mode in the Plugin!');
  23.         }
  24.  
  25.         // enable different repositories
  26.         //$this->personRepository = t3lib_div::makeInstance('Tx_In2interview_Domain_Repository_PersonRepository');
  27.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement