[TYPO3-dev] Include a hook in extension
alkativo
alkativo at gmx.de
Wed Dec 4 15:34:26 CET 2013
public function getPageItems($pid = 0){
$includestuff = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('tx_realurl');
$return = array();
$aPids = $this->getPagetreeIds($pid);
foreach ($aPids as $iPid) {
$return[$iPid] = Tx_MyOtherClass_Hooks_MyAction::getPagePathesForPid($iPid);
}
$here = '';
}
So in my Extension i try in one method to get a method from a other class. The includestuff with the sample extension is working but i can not get the public static method from the hook. I tried something like this
include_once '/path/on/server/www/typo3conf/ext/MyOtherClass/Classes/Hooks/MyAction.php';
also relative pathes. In the hook i also got
$genPath = tx_pagepath_api::getPagePath(intval($pid), $urlParameters);
and do not need any include. Is it clearer now. Thanks so far ;)
See you
Al
More information about the TYPO3-dev
mailing list