You can play with $paginator in view:
  $paginator->options(array('prefix' =>''));
  $paginator->options(array('url' =>''));

On Dec 7, 1:34 am, Andras Kende <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Im trying to do an app with 3 areas admin routes which requires login
> /admin/
> /nurse/
> /practice/
>
> routes.php:
>  Router::connect("/admin/:controller/:action/*", array
> ("prefix"=>"admin", "admin"=>true));
>  Router::connect("/nurse/:controller/:action/*", array
> ("prefix"=>"nurse", "nurse"=>true));
>  Router::connect("/practice/:controller/:action/*", array
> ("prefix"=>"practice", "practice"=>true));
>
> all seems working, except pagination, paginator links look like:
>
> http://www.domain.com/calls/nurse_index/page:2
> should be :http://www.domain.com/nurse/calls/index/page:2
>
> tried to add more more routes like
>       Router::connect("/admin/:controller/:action/*", array
> ("prefix"=>"admin"));
>       Router::connect("/nurse/:controller/:action/*", array
> ("prefix"=>"nurse"));
>       Router::connect("/practice/:controller/:action/*", array
> ("prefix"=>"practice"));
>
> but then it nurse index shows url 
> ashttp://www.domain.com/admin/calls/index/page:2
> , so somehow are overlapping..
>
> Is there a way to construct the url correctly ? maybe from a
> controller ?
>
> Thank you,
>
> Andras
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to