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?
Thanks,
K
--
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment