[Solar-talk] doubts about layout and view dirs

Rodrigo Moraes rodrigo.moraes at gmail.com
Tue Aug 8 05:53:02 PDT 2006


Hi.
I think I'm using the layout dirs more than necessary. Is the
directory /View in an application intended to store only the main
content for views? And /Layout for common parts shared by many
actions?

I have some blocks in a page that are certainly part of an specific
action; but I save them in /Layout to include them with
$this->include() in a template located at /View.

I'm a bit lost trying to understand the different template stacks when
you are inside a template or inside an action, sorry, and I'm missing
something certainly. Is there a smart way to search for includes in
/View or Layouts without changing the template paths? I mean, select
views *or* layouts to be included in a template?

thanks,
rodrigo


More information about the solar-talk mailing list