public function init() { $this->name = \Yii::t('skeeks/shop/app', 'Viewed products'); $this->modelShowAttribute = "name"; $this->modelClassName = ShopViewedProduct::className(); parent::init(); }
public function init() { $this->name = \skeeks\cms\shop\Module::t('app', 'Viewed products'); $this->modelShowAttribute = "name"; $this->modelClassName = ShopViewedProduct::className(); parent::init(); }
/** * @return \yii\db\ActiveQuery */ public function getShopViewedProducts() { return $this->hasMany(ShopViewedProduct::className(), ['shop_product_id' => 'id']); }