2009年10月20日星期二

Re: [fw-mvc] headTitle view helper append

That's correct, because the layout is processed after the view is processed. You may want to use a bootstrap _init method to set your site's title so that it happens early (before views are processed).

--
Hector


On Tue, Oct 20, 2009 at 1:03 AM, umpirsky <umpirsky@gmail.com> wrote:

Hi.

I have in my layout.phtml

<?= $this->headTitle('site.com')->setSeparator(' > ') ?>

in my view script I have

<?= $this->headTitle('my view') ?>

This generates title

<title>my view &gt; site.com</title>

I expected <title> site.com &gt; my view</title> since default set is
Zend_View_Helper_Placeholder_Container_Abstract::APPEND. Looks like layout
is appending title to view?

Regards,
Saša Stamenković.
--
View this message in context: http://www.nabble.com/headTitle-view-helper-append-tp25971209p25971209.html
Sent from the Zend MVC mailing list archive at Nabble.com.


没有评论: