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 as http://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 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:
Post a Comment