![]() |
routes in HMVC - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: routes in HMVC (/showthread.php?tid=35823) |
routes in HMVC - El Forum - 11-12-2010 [eluser]ssachan[/eluser] Hello Wiredesignz, I had posted a query earlier in this thread but didn't receive a reply. Hence I am sorry to spam this thread again. It seems that my routes are not working properly when I have HMVC in my system. Could you please help me out with this. Here is my previous topic. ---------------------------------- I am on CI 2.0 + Modular Extensions and have been able to successfully set it up grin. There are 2 questions I would like to ask. 1. Why is the MY_Controller class in core left empty? 2. I am trying to get internationalization running and for starters I added the following lines in my routes.php $route[‘default_controller’] = “welcome”; $route[’^en/(.+)$’] = “$1”; $route[’^en$’] = $route[‘default_controller’]; now if I enter a my base_url/en, it should redirect me to welcome but I get a blank screen. Could you help me please. thanks Shikhar routes in HMVC - El Forum - 11-12-2010 [eluser]wiredesignz[/eluser] MY_Controller is empty because it is no longer required. It has a small comment inside it to explain why. You can safely delete it. Your routes will not work in CI as they are, so I cannot offer you any assistance there. |