• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Route Attributes?

#1
[eluser]Y0shi[/eluser]
Hey there,

so I'm playing around with routes at the moment and I'm trying to do something like pagination with routes or non-ajax tabs with routes. Is it possible to do something like:

GENERAL
article/showarticle/id/page

ROUTE
codeigniter-is-great -> goes to article/showarticle/1/1

WHEN I SWITCH TO PAGE TO
The URI will turn to article/showarticle/1/1 and will not stay as codeigniter-is-great or something like that

Is there a way to pass attributes for things like pagination or tabs into routes? If yes, how?

Best regards

#2
[eluser]Y0shi[/eluser]
Has anyone a clou how to do this?

#3
[eluser]danmontgomery[/eluser]
http://ellislab.com/codeigniter/user-gui...uting.html

Code:
$route['codeigniter-is-great'] = 'article/showarticle/1/1';
$route['codeigniter-is-great/(:num)'] = 'article/showarticle/1/$1';


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.