0

I am writing an admin panel in cakephp

I got a question the panel will have the functionality to add items to the main website (images specifically) so I am wondering if I should put all the functionality (add,edit,view,delete) to the main admin controller or should I make a different controller for that? As the admin panel will most likely be extended with more features such as adding new users, modifying them etc.

What do you recommend?

Walter
  • 16,136
  • 8
  • 59
  • 95
shaheer
  • 103

1 Answers1

0

I would use a different controller for different items. Actually, I would not even have a separate admin controller: I would put some admin actions inside each controller.

Controllers in CakePHP are divided by the objects they act upon, not by the identity of the person who is diong the action.

Andrea
  • 5,425