Re: shared views

2006-07-27 Thread admataz
Thanks for the suggestions... I don't understand the $file parameter in the render function. Should that be the path to a file somewhere in my app that contains the view logic I'm wanting? Elements work still need a view to render, they seeom great for sharing content across controllers and

Re: shared views

2006-07-26 Thread Samuel DeVore
$this-render(null,$layout); might work http://api.cakephp.org/class_controller.html#c89d96ba75d5acfafaee61476a575353 On 7/26/06, admataz [EMAIL PROTECTED] wrote: Does anyone know if there's a way to share the same view between different controllers and controller actions? Or a good reason

Re: Re: shared views

2006-07-26 Thread Samuel DeVore
sorry $this-render(null, null, $file); On 7/26/06, Samuel DeVore [EMAIL PROTECTED] wrote: $this-render(null,$layout); might work http://api.cakephp.org/class_controller.html#c89d96ba75d5acfafaee61476a575353 On 7/26/06, admataz [EMAIL PROTECTED] wrote: Does anyone know if there's a

Re: shared views

2006-07-26 Thread gwoo
how about elements? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For

Re: shared views

2006-07-26 Thread Eric Farraro
I did this in my application recently. I created a 'CommonController', defined actions / views for that, and redirected the user to these common pages when applicable. For instance, I had an edit function for several different models. For a success, I redirect to common/success. Seems to