On Feb 26, 2011, at 15:58, Krissy Masters wrote:

> the pages controller.
> 
> I understand the basic idea of rendering static pages display => some_page
> but how can you define different layouts for each rendered static page?
> 
> All I can guess is pages_controller:
> 
> function index (){
> $this->layout = 'default_index';
> }
>        
> function about() {
> $this->layout = 'default_internal';
> }
> 
> And just skip the display function.  link directly to the action controller
> = > pages , action => index
> Am I wrong?

Why do your static pages have different layouts? I would have expected your 
static pages (and your dynamic pages too, for that matter) to use the same 
global layout, and only need a separate view file.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to