public function init() { $this->name = \skeeks\cms\shop\Module::t('app', 'VAT_rates'); $this->modelShowAttribute = "name"; $this->modelClassName = ShopVat::className(); parent::init(); }
public function init() { $this->name = \Yii::t('skeeks/shop/app', 'VAT rates'); $this->modelShowAttribute = "name"; $this->modelClassName = ShopVat::className(); parent::init(); }
/** * @return \yii\db\ActiveQuery */ public function getVat() { return $this->hasOne(ShopVat::className(), ['id' => 'vat_id']); }