Welcome Guest, Not a member yet? Register   Sign In
routes in HMVC
#1

[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
#2

[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.




Theme © iAndrew 2016 - Forum software by © MyBB