I’m new to cakephp so go easy on me!
I have a table called promoters and users can be promoters.
I want to create a “promoters dashboard/control panel”. To do this I wanted to create a prefix route of “promoters”.
E.g. you go to http://mywebsite.com/promoters/events/add you get to the promoter_add function within EventsController.
So the problem is that I actually have a controller called PromotersController which I need for the admin users (e.g. http://mywebsite.com/admin/promoters/add).
I hope you’re following.
So… my question is, will I just have to do what I think I’m going to have to do which is to create a different prefix route? Maybe call it promos or something?
Or can I create a prefix route of promoters and just have it override the controller named PromotersController if it needs to?
Thanks
Can’t you just add the promoters dashboard method to the PromotersController?
you can then visit: