in the function I want to reach the current controller:
$front = Zend_Controller_Front::getInstance();
this only gives the handler, but not the current controller.
I changed the code from the function to the internal controller. and asked their origin as the handler I received from getInstance, and this
var_dump(get_class($front), get_class($this));
I get:
string 'Zend_Controller_Front' (length=21) string 'IndexController' (length=15)
How can I achieve a real initial frontal controller?
I can not pass as a parameter, because this function is used a trillion times.
nerkn source share