Re: How to render a view into a layout

2007-10-25 Thread Chambrln
It sounds like you are wanting to render links for the site. I would suggest making it an element and placing the html in /views/elements/ sitelinks.ctp then you can use echo $this-renderElement('sitelinks'); in your view where you want the links to show up. On Oct 24, 4:16 pm, David Coll

How to render a view into a layout

2007-10-24 Thread David Coll
Hello again! I'm absolutely newbie for sure... How can I render a view (ie. /sitelinks/index ) in my default.ctp layout ? I've tried every kind of rendering stuff I could find but, no chances.. I'm not too much willing to use the renderElement function as I would like to access this as a

Re: How to render a view into a layout

2007-10-24 Thread Sam Sherlock
but I really need a guide right now ^_^ http://manual.cakephp.org/chapter/controllers $this-layout = ajax; try putting that in your action of the controller On 25/10/2007, David Coll [EMAIL PROTECTED] wrote: Hello again! I'm absolutely newbie for sure... How can I render a

Re: How to render a view into a layout

2007-10-24 Thread pizzro
maybe you need set a $var in layout file, then call $this-set(var, $this-requestAction(url,array(return))), --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: How to render a view into a layout

2007-10-24 Thread Grant Cox
Technically, you can even call the requestAction from the view itself. However, if possible you should avoid requestActions, as they are slow. And for something in your layout (ie appearing on every page), a better solution would be to have a function in your model to load the appropriate data