I saw an example on here that used variables in the regex part.
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_\-]+")
);

Was wondering if there is a way to use the same sort of variables for
setting the controller as well. Possibly something like
Router::connect('/reports/:type/*', array('controller' => 'reports_'.
$Type, 'action' => 'index'));

Thanks

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to