Welcome Guest, Not a member yet? Register   Sign In
How to pass argument to index(arg='') ?
#4

(06-21-2016, 05:54 AM)dmyers Wrote: If you want /home and /home/{{id}} you can always write a route in the application/config/routes.php file.

This is covered here http://www.codeigniter.com/user_guide/ge...ght=routes

So you could add for example:

$route['home/(:num)'] = 'home/index/$1';

DMyers

This looks like we have to do for all controller classes if all controller classes have index($id='')
Reply


Messages In This Thread
RE: How to pass argument to index(arg='') ? - by zenepay - 06-21-2016, 06:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB