Welcome Guest, Not a member yet? Register   Sign In
Routes URL and pagination problem
#3

[eluser]Geneous[/eluser]
Hi mddd
Thanks for your fast reply.

I have followed your 1st way. And really works for me.

I have written these two cases.so if pagination number is not there then route will map URL to first case.and if pagination number is there then it matches to 2nd case.

1) //When Pagination number is not there
$route['text/([A-Za-z0-9\-]+)/([A-Za-z0-9\-]+)/([A-Za-z0-9\-]+)/text1/(:num)/(:num)'] = 'text/text1/$1/$2/$3/$4/$5';

2) //When pagination number is there
$route['text/([A-Za-z0-9\-]+)/([A-Za-z0-9\-]+)/([A-Za-z0-9\-]+)/text1/(:num)/(:num)/(:num)'] = 'text/text1/$1/$2/$3/$4/$5/$6';

So it worked for me.

Thanks a lotz. :-)


Messages In This Thread
Routes URL and pagination problem - by El Forum - 06-12-2009, 12:06 AM
Routes URL and pagination problem - by El Forum - 06-12-2009, 01:41 AM
Routes URL and pagination problem - by El Forum - 06-12-2009, 04:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB