I have use a cakePHP framework. I have issue with the routing in cakephp.
I have two controller "Admins" and "Users".
I have write some methods for the "Admins" controller in "Users" controller. See below example.
class UsersController {
public function admin_index() {
my_code
}
}
class AdminsController {
My methods
}
As per cakephp routing rules if I want to use admin_index method from the admin controller than use below URL :
site_url/admin/users/index
I want to remove admin keyword from the above URL.
I have search out lots of on google but I have not got any proper solution.
Thanks in advance for helping me.