Wednesday, May 16, 2012

Re: optional routing elements

I haven't tried this myself but I doubt that "1" matches what Cake
thinks a year is.

On Sun, May 13, 2012 at 1:39 PM, rihad <rihad@mail.ru> wrote:
> Hi, I'm reading the routing docs here: http://book.cakephp.org/2.0/en/development/routing.html
> Basically what it says is that the following route config:
>
> Router::connect('/foo/bar/:year/:month/:day', array('controller' =>
> 'foo', 'action' => 'bar', 'day' => null));
>
> would treat the last element as optional, and would therefore also
> match this URL:
>
> /foo/bar/1/2
>
> yet it doesn't. It does match /foo/bar/1/2/3
>
> CakePHP 2.1.2
>
> --
> Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate