![]() |
Passing Parameters To Index - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Passing Parameters To Index (/showthread.php?tid=13368) |
Passing Parameters To Index - El Forum - 11-20-2008 [eluser]Unknown[/eluser] Hi Presently I am working on sample site and I have done the pagination work which I found from some site. It's working fine.But my question is can we pass parameters to default index page if so how can we do that?. Passing Parameters To Index - El Forum - 11-20-2008 [eluser]Murodese[/eluser] You should be able to just by defining a route to that particular page. For a controller called gallery, you could do something like this: (in config/routes.php) Code: $route['gallery(/.*)?'] = 'gallery/index.php$1'; Untested, try it and see. |