[TYPO3-mvc] div2007 - Call to a member function getDesignator() on a non-object

ktt kestutis98 at yahoo.com
Fri Nov 2 11:28:32 CET 2012


Hello,

I have tried to upgrade extension using lib/div to div2007:

class tx_myextension_controllers_xx extends tx_lib_controller {
replaced with
class tx_myextension_controllers_xx extends tx_div2007_controller {

tx_div::makeInstanceClassName('tx_myextension_myClass');
replaced with
tx_div2007::makeInstance('tx_myextension_myClass');

But it fails to create a controller object:
Fatal error: Call to a member function getDesignator() on a non-object in ../typo3conf/ext/div2007/class.tx_div2007_parameters.php on line 61

Each controller action has 
$this->setDefaultDesignator("tx_myextension_model_name");

Im using TYPO3 4.5, tx_div2007 - 0.10.4

Should I rewrite main() in a controller?


Thank you in advance,
Kast


More information about the TYPO3-project-typo3v4mvc mailing list