jedt/spark_plug — Issue #46: Controller composition
Author: mescalito
Created: 2011-10-24 19:14:49+00:00
State: open

Hi again!!
I'm glad you liked the bug I catched last week!
Here is something I would like to ask you, maybe (just maybe) you can figureout...

I want to add some new code and functionalities to the user's controller but I don't want to change the "main" plugin files.

I was thinking if it is possible leave the "main" plugin controller as it (unchanged) "\app\plugins\spark_plug\controllers\users_controller.php" and create a secondary controller with all the new code and functionalities, something like this "\app\controllers\users_controller.php" and extends the plugin "main" controller.

Is that possible? and how achieve that?

Or do you think is there any other way to do what I want?

Thanks!
http://stackoverflow.com/questions/7878636/extends-cakephp-plugin