Welcome Guest, Not a member yet? Register   Sign In
pass param to the index of a controller
#2

[eluser]Jonathon Hill[/eluser]
1) I wouldn't use the paramPerPage segment - store that in your config files. If the user needs to be able to change it, store it in their session.

2) If you want to eliminate the list segment, create an entry in your routes.php config file per the User Guide:

Code:
$route['news/(:any)'] = "news/list/$1";

3) I personally find CI's pagination library a pain to use. Try Paging Simplified. With it your URL would look like:

www.mywebsite.com/index.php/news/p:1 for page 1,
www.mywebsite.com/index.php/news/p:2 for page 2, etc.

4) If you're concerned about SEO it's standard practice to get rid of index.php in your URL.


Messages In This Thread
pass param to the index of a controller - by El Forum - 12-31-2008, 06:38 AM
pass param to the index of a controller - by El Forum - 12-31-2008, 07:47 AM
pass param to the index of a controller - by El Forum - 12-31-2008, 08:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB