Here are some relevant CakeBin pastes:

http://bin.cakephp.org/view/1593972132

http://bin.cakephp.org/view/1098672765

When I uncomment the pr($url), I get this:

http://bin.cakephp.org/view/706088071

On May 13, 8:27 pm, Aaron  Shafovaloff <[EMAIL PROTECTED]> wrote:
> 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 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