How to override app controllers and models via plugins?

Hi,

I have a web app built with CakePHP 3 and most of my clients need to extend the app controllers and models functionality without touching the app core files, Can that done via plugins?If yes, how? else how to add this abilty?
I know that plugin themes are only override templates but not controllers and models

Thanks

I think it can be done as long as somehow set routes to use the plugin instead of the core controllers.

About models, it can be done via Inheritance (OOP)

1 Like