How to rmove controller name - 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: How to rmove controller name (/showthread.php?tid=20484) |
How to rmove controller name - El Forum - 07-11-2009 [eluser]Unknown[/eluser] Hello, My CodeIgniter installation is not in my web root, but in a sub folder called dvd_collection. My idea was to use urls like “dvd_collection/browse”, “dvd_collection/search” etc. The problem is that the controller name needs to come before the functions, producing the, to me, ugly urls “dvd_collection/controller_name/browse” and “dvd_collection/controller_name/search” instead. Have anyone had similar problems, or is there a solution I haven’t found out about? Thanks for any help. How to rmove controller name - El Forum - 07-11-2009 [eluser]umefarooq[/eluser] here is you solution you can change the ugly url to beautiful urls, just read the user guide http://ellislab.com/codeigniter/user-guide/general/routing.html $route['controller_name/browse'] = "controller-name/browse"; How to rmove controller name - El Forum - 07-12-2009 [eluser]darkhouse[/eluser] umefarooq, I think you meant this: Code: $route['browse'] = "controller-name/browse"; But you're right, just read up on Routing in the docs. |