URL routing when using HMVC |
[eluser]Yoosuf Muhammad[/eluser]
Hi Igniters, Need a quick hand on setting custom route for my project. the code works without any reoute definition as Code: http://myblog.local/posts/categories/show/1 but I want to access it as following; Code: http://myblog.local/posts/1 Code: $route['posts/(:any)'] = 'posts/categories/show/$3'; But my route declaration seems not working, please help me where i am doing the mistake
[eluser]Otemu[/eluser]
This post should provide you with the answers you seek http://stackoverflow.com/questions/14200...g-properly
[eluser]hot_sauce[/eluser]
Add this in your routes.php config file application/config/routes.php Auto generation routes change your dir modules if necessary! Code: $dir_modules = APPPATH.'modules'; |
Welcome Guest, Not a member yet? Register Sign In |