Controller within Controller Issue |
there are 2 sides of this problem. If you want to set the default controller for a sub directory with the url being a subdirectory too then your new solution works fine:
eg: domain.com/admin -> would nicely load "controllers/admin/index" But if your code is designed to load a sub controller without a subfolder in the url path, the new system is very limiting: eg: some-other-domain.com-> can NOT load "controllers/other-project/index" Do you understand the difference? I am using codeigniter to load different controllers in subfolder for different URLS. With a URL switcher is set the ENVIRONMENT and load different conf/routing.php file (conf/some-other-domain.com/routes.php) and like this there is now way to set the default_controller to /controllerssome-other-domain.com/main. |
Welcome Guest, Not a member yet? Register Sign In |