Hmm, nevertheless, I still have a question: how can I set things like headTitle() in the preDispatch function?
I am trying to do this:
[PHP]
$layout = Zend_Layout::getMvcInstance();
$layout->headTitle()->prepend(SITE_TITLE);
$layout->headTitle()->setSeparator(' - ');
[/PHP]
and I get an error
Code:
Fatal error: Call to undefined method Zend_Layout::headTitle() in /*/library/Custom/Plugin/Dispatcher.php on line 16
What am doing wrong?