[TYPO3-dev] Extending controller - error assign() on null

Vikram vikram at fivee.in
Tue Sep 22 07:48:39 CEST 2015


Hi,

I need to extend the controller of Aimeos extension as I need to access 
some of its objects in my own extension.

The controller in extn:

class SaleController extends \Aimeos\Aimeos\Controller\AbstractController {


The TS:

config.tx_extbase {
	objects {
	# Extending a controller
	Tx_Aimeos_Controller_AbstractController {
		className = Tx_Cbrlz_Controller_UserController
		}
	}
}


After this my views are not working any more. I get error when I call 
$this->view->assign(...) in the my actions.

"Fatal error: Call to a member function assign() on null"


regards
Vikram Mandal
--
FiveE.in



More information about the TYPO3-dev mailing list