07-13-2016, 07:20 PM
I had trouble with this once and if I recall it was while building a todo list. I had something like:
tasks.php
tasks/full_task.php
tasks/sub_tasks.php
The problem was that CI did not know where to look of course. It did not know if tasks/sub_tasks was a method in tasks.php or a controller in the actual folder tasks. The answer was to not name folders the same as controllers.
Hope that might be of some help,
Paul.
tasks.php
tasks/full_task.php
tasks/sub_tasks.php
The problem was that CI did not know where to look of course. It did not know if tasks/sub_tasks was a method in tasks.php or a controller in the actual folder tasks. The answer was to not name folders the same as controllers.
Hope that might be of some help,
Paul.