3212 Posts in 847 Topics by 809 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 4968 Views |
-
renderWith and layout

28 January 2009 at 12:19am Last edited: 28 January 2009 12:20am
Hi,
I have a file like this :
templates/Page.ss :
<p>$Layout</p>
and another :
templates/layout/Pages.ss
toto
In a controller I have an action that return :
$this->renderWith('Page');
in the response I have 'toto' instead of :
<p>toto</p>
why?
-
Re: renderWith and layout

28 January 2009 at 8:48am
That's odd. Try adding "?showtemplate=1" to the end of the URL - that will tell you what templates it's hitting.
(btw, does your layout dir have a capital L? Don't know if it matters, but mine always have L instead if l)
-
Re: renderWith and layout

28 January 2009 at 9:13am Last edited: 28 January 2009 9:14am
Sure you have flushed? (?flush=1)
On the other hand try
$this->renderWith(array('Page', 'Page'));
| 4968 Views | ||
|
Page:
1
|
Go to Top |



