passing url vars to controller |
building on what others have written
link: http://www.example.com/category/books/mysteries/5 config/route: $route['category/(:any)/(:any)/(:num)'] = "show/category/$1/$2/$3" ; controller: Show method: category($category=null,$subcat=null,$item=null){ // blah blah } note: there are no numbers in the url except for the item number. we don't reveal the controller name in the URL. the URL is short and clear. |
Messages In This Thread |
passing url vars to controller - by geegee - 03-02-2015, 09:38 AM
RE: passing url vars to controller - by ciadmin - 03-02-2015, 11:19 AM
RE: passing url vars to controller - by geegee - 03-02-2015, 12:14 PM
RE: passing url vars to controller - by twpmarketing - 03-02-2015, 01:42 PM
RE: passing url vars to controller - by cartalot - 03-06-2015, 05:46 PM
|