Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] How to select default controller in subfolder?
#1
Thumbs Up 
(This post was last modified: 01-12-2016, 07:42 AM by normeno. Edit Reason: solved )

Hi community,

I'm trying to do a project in Codeigniter 3.x, but I have a question concerning the routes.

If I have the following structure

/application/controllers/Welcome.php

I can put the following in routes.php and have no problem

PHP Code:
route ['default_controller'] = 'welcome'

The problem is that if I have the following structure

/application/controllers/admin/Welcome.php

I am not allowed to configure the routes so

PHP Code:
route ['default_controller'] = 'admin/welcome'

There is the ability to set default controller in a subdirectory of controllers?


Thank you!
Reply


Messages In This Thread
[SOLVED] How to select default controller in subfolder? - by normeno - 01-06-2016, 03:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB