I am using CodeIgniter framework. I have files in my controllers folder like this:
- Controllers
--- admin.php - Admin Controller
--- /Admin - Admin Folder
----- category.php - Category Controller in Admin folder.
The Url: mysite.com/index.php/admin/category says that page not found because it is trying to call the category function of admin controller but I want it to call the index function of category controller in Admin folder.
Also I am using the admin controller for create, edit etc. functions of admin controller like mysite.com/index.php/admin/create.
I think, I should use the $route array in config file. What routing should I use?