I’m using the yii2-admin module and would like to extend the assignment controller to add additional actions. This controller is located in /vendor/mdmsoft/yii2-admin/controllers/AssignmentController.php. I would like to keep the third-party plugin in tact, that is no modifications in the /vendor folder, to be able to update this module without losing the modifications.
I created my own assignment controller and put in the folder /frontend/web/themes/modules/yii2-admin/controllers/AssignmentController.php’ and set its namespace to ‘frontend\controllers\admin’. In my main.php configuration I have:
Thanks for pointing that out, but unfortunately I made a typo only when writing this post, my folder structure is correct (spelling Assignment instead of Assingment). I will correct my first post and I’m still looking for a solution.