Friday, June 24, 2011

Re: Routers

no no...you just add my route, so you have 2 routes

Router::connect('/authors/first-letter/:letter', array('controller' => 'authors', 'action' => 'first'),array('pass' => array('letter'),'letter' => '[a-zA-Z]'));
Router::connect('/authors/first-letter/:letter/:page', array('controller' => 'authors', 'action' => 'first'),array('pass' => array('letter'),'letter' => '[a-zA-Z]'));

--
Lep pozdrav, Tilen Majerle



2011/6/24 Prabha Vathi <prabha.riddles@gmail.com>
No, It is not working. If i remove this Router::connect('/authors/first-letter/:letter', array('controller' => 'authors', 'action' => 'first'),array('pass' => array('letter'),'letter' => '[a-zA-Z]'));
and the one you gave me, i am getting error.

If i add that new code in new line it is not changing the paging url. I am still getting wrong paging url.

--
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

No comments: