public function init()
 {
     $this->name = \skeeks\cms\shop\Module::t('app', 'Order statuses');
     $this->modelShowAttribute = "name";
     $this->modelClassName = ShopOrderStatus::className();
     parent::init();
 }
 public function init()
 {
     $this->name = \Yii::t('skeeks/shop/app', 'Order statuses');
     $this->modelShowAttribute = "name";
     $this->modelClassName = ShopOrderStatus::className();
     parent::init();
 }
Example #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getStatus()
 {
     return $this->hasOne(ShopOrderStatus::className(), ['code' => 'status_code']);
 }