Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Initializes the current action
- *
- * @return void
- */
- protected function initializeAction() {
- $this->piVars = $this->request->getArguments();
- // error if no storagePid
- $configuration = $this->configurationManager->getConfiguration(Tx_Extbase_Configuration_ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK);
- if (empty($configuration['persistence']['storagePid'])) {
- $this->flashMessageContainer->add($this->extensionName . ': No Storage PID given. Please add a storage page in the plugin or constants!');
- }
- // error if no staticTemplate
- if (!isset($configuration['settings']['staticTemplate'])) {
- $this->flashMessageContainer->add($this->extensionName . ': TypoScript Template is missing. Please include the static template!');
- }
- // error if no mode selected
- if (!isset($this->settings['flexform']['mode'])) {
- $this->flashMessageContainer->add($this->extensionName . ': Please select a mode in the Plugin!');
- }
- // enable different repositories
- //$this->personRepository = t3lib_div::makeInstance('Tx_In2interview_Domain_Repository_PersonRepository');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement