Rewrite controller's methods

Discussion in 'Extensions' started by Pavel, Oct 4, 2016.

  1. Pavel

    Pavel New Member

    Joined:
    Apr 14, 2016
    Messages:
    7
    Likes Received:
    1
    S.E:
    Expired
    L.T:
    Regular
    L.C:
    1
    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!
     
  2. Vpul Shah

    Vpul Shah Active Member Support Staff

    Joined:
    Feb 23, 2015
    Messages:
    766
    Likes Received:
    122
    S.E:
    2019-12-22 13:03:57
    L.T:
    Regular
    L.C:
    1

Share This Page