user745235
user745235

Reputation:

PHP Separate admin controllers CODEIGNITER

I have some basic controllers and admin controllers, I'm trying to separate them in folder to avoid things like this one:

controllers/user.php -> general users controllers/a_user.php -> for admin users

I've read some things about route but couldn't find a way to do that.

Thanks in advance for any help.

Upvotes: 2

Views: 709

Answers (1)

hakre
hakre

Reputation: 197609

Create a subfolder inside controllers folder and place your admin controllers in there.

Upvotes: 4

Related Questions