View Single Post
  #3 (permalink)  
Old 10-04-2008, 05:50 PM
Cypher Cypher is offline
Junior Member
 
Join Date: Oct 2008
Posts: 4
Default

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?

Last edited by Cypher; 10-04-2008 at 06:11 PM.
Reply With Quote