hi Nate, > Off the cuff (so I'm not even sure it parses): > > Router::connect( > "/articles/:year/:month/:day/:slug", > array("controller" => "articles", "month" => null, "day" => null, > "slug" => null), > array('year' => $Year, 'month' => $Month, 'day' => $Day, 'slug' => > "[A-Za-z0-9_\-]+") > ); > > Router::connect("/articles/:action", array("controller" => > "articles"), array("action" => "list|controller|actions|here")); > > Router::connect("/articles/:slug", array("controller" => "articles", > 'action' => 'view'), array("slug" => "[A-Za-z0-9_\-]+")); > > All the variables used are magic variables that are available in > config/routes.php. Also, passing null to keys in the second parameter > makes those parameters optional, so that first route takes care of all > your date / date + slug URLs.
Thanks for the routes. One question, with the following route: Router::connect("/articles/:action", array("controller"=>"articles"), array("action" => "list|controller|actions|here") ); Am I right in thinking I need to list ALL methods my Articles controller has here? Is that just public or private as well? Cheers, Jon -- jon bennett w: http://www.jben.net/ iChat (AIM): jbendotnet Skype: jon-bennett --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---