Hi,
I just added this
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]'));
http://localhost/famousquotes/authors/first/m/page:2
But paging is still give the above link
URL in browser now is : http://localhost/famousquotes/authors/first-letter/m
Thanks
On Fri, Jun 24, 2011 at 10:28 PM, Tilen Majerle <[email protected]>wrote:
> 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
> http://majerle.eu
>
>
>
> 2011/6/24 Prabha Vathi <[email protected]>
>
>> 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
>> [email protected] 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
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>
--
-- Prabhavathi
--
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
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php