2008年11月25日星期二

Re: [fw-mvc] Multiple action and headTitle view helper

Good question. This is something i asked myself a lot of time.

On Mon, Nov 24, 2008 at 15:41, Giorgio Sironi <piccoloprincipeazzurro@gmail.com> wrote:
Hello, when I use multiple actions with Action view helper, the headTitle helper is called multiple times and in layout I obtain a duplicate title of the main action and of the sub task. This break reusing of actions. What can I do to avoid this?
e.g.
Article action has a $this->action() call in the view that includes the comments action (list of comments related to the article). The title become: "Article title - Article title comments".
Thanks,

--
Giorgio Sironi
Piccolo Principe & Ossigeno Scripter
http://www.sourceforge.net/projects/ossigeno

没有评论: