CodeIgniter Forums

Full Version: multi controller in subfolder
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

I want to make 2 folder frontend and backend in directory controller, but I don't know how to call them, I found some old topic like my question but how to make it ci version 2.1.

El Forum

/application/controller/backend/controller1.php (you can only go 1 directory deep in /controller, so you can't have /controller/dir1/dir2/controller1.php)

URL: (assuming you haven't removed the index.php using htaccess)

Personally, I'd just have "backend" and leave the front facing controllers in /application/controllers. Otherwise your urls for the frontend will all have "frontend" in them unless you remove them with routes.

El Forum

as @CroNiX said or you can go hmvc