コード例 #1
0
 public function init()
 {
     $this->name = \skeeks\cms\shop\Module::t('app', 'VAT_rates');
     $this->modelShowAttribute = "name";
     $this->modelClassName = ShopVat::className();
     parent::init();
 }
コード例 #2
0
 public function init()
 {
     $this->name = \Yii::t('skeeks/shop/app', 'VAT rates');
     $this->modelShowAttribute = "name";
     $this->modelClassName = ShopVat::className();
     parent::init();
 }
コード例 #3
0
ファイル: ShopContent.php プロジェクト: skeeks-cms/cms-shop
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getVat()
 {
     return $this->hasOne(ShopVat::className(), ['id' => 'vat_id']);
 }