Easier than checking if the first part is a team would be to check if
the second part is "news". If this is a consistent pattern that would
not appear in any other URL, you can do the following in
app/config/routes.php:
$Route->connect("/:team/news/*", array("controller" => "news", "action"
=> "index"));
That would trigger the index() action of NewsController for any URL
that matched this pattern. Then, the team name would be available in
the controller as $this->params["team"].
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---