I extensively use Router::url in my application. I'd hope I could use
some sort of regular expression or option in the usage of Router::url
without afterwards modifying what Router::url returns.

$5 to anyone who can help me with this problem :-)

On May 13, 8:04 pm, Aaron  Shafovaloff <[EMAIL PROTECTED]> wrote:
> The following seems to force whatever action I'm currently using into
> the url returned by Router::url.
>
> Router::connect('/:group/:controller/:action/*',
> array('action'=>null), array('controller' => 'curriculum|courses|
> facilitators|configuration'));
>
> I thought array('action'=>null) would make the action optional?
>
> If I change it to:
>
> Router::connect('/:group/:controller/:action/*',
> array('action'=>'index'), array('controller' => 'curriculum|courses|
> facilitators|configuration'));
>
> ... it, as expected, defaults the action to 'index'. But here's the
> thing: I'd only like the action to be visible in the url when it's
> *not* 'index'. Any ideas?


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to