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 email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



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 [ $this->layout = "" ] in _beforeScaffold() -- no
change.

What I find bizarre is that it seems that not many others need this
functionality?
public frontend = layout1
private backend = layout2

Does everyone use the same layout for the scaffolding?

On Mar 30, 6:11 pm, Amit  wrote:
> Here's a good 
> walkthrough:http://teknoid.wordpress.com/2009/01/31/take-control-over-your-bake-a...
>
> On Mar 30, 5:05 pm, Amit  wrote:
>
> > 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  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 scaffolding?
>
> > > Thanks for your help!
--~--~-~--~~~---~--~~
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 email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



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  wrote:
> 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  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 scaffolding?
>
> > Thanks for your help!
--~--~-~--~~~---~--~~
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 email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



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  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 scaffolding?
>
> Thanks for your help!

--~--~-~--~~~---~--~~
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 email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



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  wrote:
> 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  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 scaffolding?
>
> > Thanks for your help!
--~--~-~--~~~---~--~~
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 email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



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  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 scaffolding?
>
> Thanks for your help!
--~--~-~--~~~---~--~~
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 email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



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 post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---