$Route->connect('/admin', array('controller' => 'pages', 'action' =>
'display', 'admin'=>'admin', 'home'));
$Route->connect('/admin/pages/*', array('controller' => 'pages',
'action' => 'display', 'admin'=>'admin'));
$Route->connect('/pages/*', array('controller' => 'pages', 'action' =>
'display'));
In the pages controller I have the display action and the admin_display
action.
Then, In the admin_display action I have it set to look in
/views/pages/admin for the view to use.
Thanks to BakeSale for getting me on the right path to this solution.
Now I have admin static pages and normal people static pages.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---