Welcome Guest, Not a member yet? Register   Sign In
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';




Theme © iAndrew 2016 - Forum software by © MyBB