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