0

In CodeIgniter, I can use $autoload['packages'] to specify additional locations for libraries, models, and helpers. But how do I specify additional locations for controllers.

What I want is this: If a URL specifies controller xyzzy, CodeIgniter should first look for the usual application/controllers/Ctrl_xyzzy.php file, and if it doesn't find it, it should look for other_place/controllers/Ctrl_xyzzy.php instead.

Is that possible?

1
  • For this you can use HMVC Commented Jun 21, 2016 at 17:31

1 Answer 1

1

For calling a controller from another controller you need to use HMVC

refer this link https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc

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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.