On Feb 12, 2008 11:01 AM, grigri <[EMAIL PROTECTED]> wrote:
>
> This is exactly what the PagesController does.
>
> Move your views/news directory to views/pages/news
>
> Edit /app/config/routes.php, and add this line:
>
> Router::connect('/news/*', array('controller' => 'pages', 'action' =>
> 'display', 'news'));
>
> That should do it!

Right, but you still need a controller...the pages controller. ;)


-- 
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to