public function init()
 {
     $this->name = \Yii::t('app', "Managment {email} templates", ['email' => 'email']);
     $this->modelShowAttribute = "event_name";
     $this->modelClassName = CmsEventEmailTemplate::className();
     parent::init();
 }
예제 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getEventEmailTemplate()
 {
     return $this->hasOne(CmsEventEmailTemplate::className(), ['id' => 'event_email_template_id']);
 }