URL Rewriting issue in Pagination
Hi,
I'm using URL Rewriting for showing my list of data in a particular
category (http://localhost/getfreelistsver2/lists/free_article_sites)
(All urls are just for example as the project is in my local server).
I'm using URL Rewriting for this as below:
Router::connect("/lists/free_article_sites/:dba", array("controller"
=> "lists", "action" => "executecat","1"),array("dba"=>"(.*)"));
So the actual function being used is "executecat" to which i'm passing
ID of the category to show results. Now when I use the below mentioned
URL:
http://localhost/getfreelistsver2/lists/free_article_sites/page:2
It never pass the passedArgs like page:2. That's why i'm not able to
implement pagination correctly. In this situation I just got a single
passedArgs and that is ID (ID is 1 in above case). Please let me know
How i can pass the passedArgs and also let me know the effective url
rewrite rule for this.
After so much searching, I'm here with a hope of result.
Thanks in advance.
--
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
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home