On Thu, Jun 7, 2012 at 8:39 AM, gorgoro wicks
<[email protected]> wrote:
> How can i use the default layout but when i am on About us page to
> make the default layout add the about us content and the same for
> contact.
> can anyone help or give a guide how to do that .
Put the static pages into the app/View/Pages and then define routes
for each of them
Router::connect('/aboutus', array('controller' => 'pages', 'action' =>
'display', 'aboutus'));
Router::connect('/contact', array('controller' => 'pages', 'action' =>
'display', 'contact'));
Mike.
--
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