At the file config/routes.php
you just have to add something like:
Router::connect('/entertainment/view/:action/*', array('controller' =>
'movies','action' => 'view'));
regards
2010/11/4 kishore <[email protected]>
> Hi..
>
> Am new to cakephp and I have problem with routing urls..
>
> let me explain what exactly I want..
>
> I have working site with this scenario..
>
> domain.com/movies
> domain.com/movies/view/123
>
> movies is my controller , view is a method in it ..and is working
> fine..
>
> now I want a prefix to the urls which uses the controller movies and
> methods in it..
>
> I want
>
> domain.com/entertainment/movies
> domain.com/entertainment/movies/view/123
>
> to work same as
>
> domain.com/movies
> domain.com/movies/view/123
>
> which uses the same controller moviescontroller
>
> I hope..you understand..what I need..
>
> thanks in advance
>
> 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]<cake-php%[email protected]>For
> more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>
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 [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