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 view

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 work,

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: 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 kn

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 rea

shared views

2006-07-26 Thread admataz
Does anyone know if there's a way to share the same view between different controllers and controller actions? Or a good reason not to have common views? Some of my controller actions output generic structured data. I would like to assign a view that is shared across my app, and not bound to a sp