Bert Van den Brande 写道:

> Make sure you define the /tags/add route before the general /tags/*
> route in routings.php
>

Yes, this works with
$Route->connect('/tags/add', array('controller' => 'tags', 'action' =>
'add'));
and
$Route->connect('/tags/*', array('controller' => 'tags', 'action' =>
'view'));
all added.

But in this case, as long as I add a new controller action, I have to
add a new rule to the routing config file. Is there any possible to
specify the rule like this $Route->connect('/tags/:firstparam',
array('controller' => 'tags', 'action' => 'view','firstparam')); ?
 I hope this in future cake. :)

Thanks.


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

Reply via email to