Hey all,
I have a very stupid question. I have a default.ctp which all the
pages except the homepage will be rendered using this view file. So
the homepage will not be using that default layout and contains no
data that needs a database. I created a different layout for the
homepage named homepage.ctp, but I dont know how to use that that
layout using the.
Router::connect('/', array('controller' => 'simplePage', 'action' =>
'index'));

I create a simplePage controller with a function called index such
that:
        function index() {
                $this->layout = 'homepage';
        }
and a view folder with index.ctp.

But it's required to have a model and a database which i dont want to
create.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to