2

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.

3
  • 2
    Just copy them in their own folder and request them as needed (add the path to the URL in front of the controller name). Commented Oct 2, 2011 at 17:49
  • I'll add the admin folder inside controllers folder or outside it? Commented Oct 2, 2011 at 17:51
  • 2
    Create a subfolder inside controllers folder. Commented Oct 2, 2011 at 17:53

1 Answer 1

4

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.