How to rmove controller name |
[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.
[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-gui...uting.html $route['controller_name/browse'] = "controller-name/browse";
[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. |
Welcome Guest, Not a member yet? Register Sign In |