Friday, January 29, 2010

Re: How & where to define a new class for routes

Well considering you're using an example from my post, why not read
the rest of it. I explain it there.

-Mark

On Jan 28, 11:47 pm, Ram <ramkumar.r...@gmail.com> wrote:
> Hi all,
>
>      In my application i need to analyze the url, I seen in one
> article that in order to do this stuff we can define a class to routes
> like
>
> Router::connect('/:slug', array('controller' => 'posts', 'action' =>
> 'view'), array('routeClass' => 'SlugRoute'));
>
> I want to to where to define this SlugRoute class.
>
> Thanks,
> M.Ramkumar

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en

No comments: