Using hmvc in CakePHP
So, I'm going to use CakePHP for an upcoming project. I am studying how the hMVC framework can be applied to the Cake framework. This is a big project, so I believe hMCV will add some value. As far as applying hMVC to cake, it seems like it is possible to create a custom hMVC setup using plugins as separate MVC modules to achieve hMVC setup.
Is this reasonable? So, what should hMVC approach in CakePHP? Is there another way I should be approaching this that I forgot in my research?
Also, may I be able to have these plugin classes extend my main application classes if needed. Can I create something like a security_controller that I could have, perhaps only 3 of my 5 plugins inherit (i.e. the respective controllers in each inherit from security_controller)? I am still confused changing the interaction between the plugin and the main application. Please let me know if you need further clarification and thank you for your help.
Edit: It looks like hMVC might be unnecessary here and that I can define the global functionality I need in AppModel.php and AppController.php respectively. I'm still interested in the community's opinion on how best to achieve the type of functionality I'm talking about in my question. Thanks again.
source to share
No one has answered this question yet
See similar questions:
or similar: