Tuesday, October 27, 2009

Re: $html->link HELP

I found this post helpful: http://bakery.cakephp.org/articles/view/taking-advantage-of-the-pages-controller
There is a catch all route that you can add last and you can use that
to help with your URLs.

As far as your routes.php file. With that code
http://site.com/
should route to
http://site.com/pages/display/home

Not sure why you're getting the error. Do you have the action/view
home maybe? So you would want:
Router::connect('/', array('controller' => 'pages','action' =>
'home')); which would go to http://site.com/pages/home


--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: