On Thu, Dec 30, 2010 at 4:45 AM, talisker <[email protected]> wrote: > Hello! > > I need just this: go directy to an action without the action name on > the url, like this example: > > www.example.com/news/read/2-hello_world_is_dying > > to > > www.example.com/news/2-hello_world_is_dying > > I tried to achieve this adding this route on routes.php: > > Router::Connect('/news/:id-:slug', array ('controller' => 'news', > 'action' => 'read'), ... > > I thought defining this route, the inverse routing would make these > desired url's but... not!
Well, what is the rest of the route? And how are you creating the link? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" 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
