Rewrite controller's methods

Pavel

New Member
Hello!
I want to rewrite init() methods from several controllers, for ex. Api_keysController I want to add condition like this:
if (Yii::app()->options->get('system.common.api_status') != 'online' || Yii::app()->customer->getId() != 1)
How can I use extension for this? Because I should use more changes, and they will create issues, when I upgrade MailWizz.
Thanks!
 
Back
Top