Re: Setting Layout for Scaffolding?

2009-04-01 Thread Gwoo
use the _beforeScaffold callback in your controller --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send

Re: Setting Layout for Scaffolding?

2009-03-31 Thread bbf
Thanks Amit but unfortunately that walkthrough helps for modifying the HTML that the scaffolding functionality uses -- but it does not address the layout. The layout remains default. I also tried setting [ $this-layout = ] in those view / .ctp files and no change. I also tried [

Setting Layout for Scaffolding?

2009-03-30 Thread bbf
I've searched the groups and Google and can't find an answer for this. How do I set a different layout for the scaffolding? Thanks for your help! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To

Re: Setting Layout for Scaffolding?

2009-03-30 Thread John Andersen
As far as I can understand from the documentation, you just replace the default layout with your own. The default layout can be found in the app/views/layout folder. Enjoy, John On Mar 30, 10:42 am, bbf builtbyf...@gmail.com wrote: I've searched the groups and Google and can't find an

Re: Setting Layout for Scaffolding?

2009-03-30 Thread bbf
That would change the layout for the whole site. I want my site to use one layout (e.g. the pretty layout), but the scaffolding to use a different layout (e.g. the plain layout). On Mar 30, 5:04 am, John Andersen j.andersen...@gmail.com wrote: As far as I can understand from the

Re: Setting Layout for Scaffolding?

2009-03-30 Thread Amit
I think you're referring to cake/libs/views/scaffold/(add|edit| view.ctp). These will let you alter the way scaffolding looks On Mar 30, 2:42 am, bbf builtbyf...@gmail.com wrote: I've searched the groups and Google and can't find an answer for this. How do I set a different layout for the

Re: Setting Layout for Scaffolding?

2009-03-30 Thread Amit
Here's a good walkthrough: http://teknoid.wordpress.com/2009/01/31/take-control-over-your-bake-and-scaffold-html-templates/ On Mar 30, 5:05 pm, Amit a...@amitvaria.com wrote: I think you're referring to cake/libs/views/scaffold/(add|edit| view.ctp). These will let you alter the way scaffolding