2008年9月30日星期二

Re: [fw-mvc] Zend_View_Helper_HeadTitle - how to unset previously set title?

Hi,

On 30.9.2008 18:04, temuri wrote:
> I thought that doing this would clear page title:
>
> $viewRenderer->view->headTitle(NULL,
> Zend_View_Helper_Placeholder_Container_Abstract::SET);
>
> But it does not.
>
> Any idea how it can be done without extending/overriding... ?

This is how I do it:

$viewRenderer->view->headTitle()->getContainer()->exchangeArray(array());

Regards,
Marian

没有评论: