Welcome Guest, Not a member yet? Register   Sign In
Controller within Controller Issue
#15

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


Messages In This Thread
Controller within Controller Issue - by Hideauze - 01-12-2015, 05:13 PM
RE: Controller within Controller Issue - by Narf - 02-04-2015, 05:47 PM
RE: Controller within Controller Issue - by boonstoppel - 06-05-2015, 06:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB