Skip to content

Controller composition #46

@mescalito

Description

@mescalito

Hi again!! this is not an issue, is more a question
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions