How can I execute a controller i a sub-folder using a URL in Codeigniter?
If I have the next controllers y controllers folder:
-/controllers/
|---------controller1.php
|---------/sub-folder/
|---------controller2.php
I can execute controller1.php using a URL similar to this:
example.com/index.php/controller1/function/param
But, How can I execute controller2.php?
Very important:
=> make sure your sub folder name is not any of the controller's name
=> make sure your class name and file name is same**
example.com/index.php/sub-folder/controller2/function/param? I think codeigniter will allow you to do this up to 1 level of subfolders.