2009/5/27 Sergio Rinaudo <kaiohken1...@hotmail.com>

>
> in my protected function _initViewHelpers() for my default module I set
>
> $view->headTitle()->setSeparator(' - ');
> $view->headTitle('My Website Title');
>
> Then, in the admin module bootstrap, same method name, I set
>
> $view->headTitle('Control Panel');
>
> I would expect that my default module's title were 'My Website Title' and
> my admin module's title Control Panel.
>
> Instead of that,  I get 'Control Panel - My Website Title' on each modules.
>

All bootstraps run on each request, so your application is running both
_initViewHelpers() methods. You could either move this logic to a controller
plugin, where you could check the current module and set the headTitle
accordingly, or if your admin area has a different layout you could set the
default titles in your layouts.

-- 
Tim Fountain
http://tfountain.co.uk/

Reply via email to