private function getCommonDate() { $currCurency = Setup::getCurrCurency(); $data['currCurency'] = $currCurency; $currLang = Setup::getCurrLang(); $data['currLang'] = $currLang; $iP = Yii::$app->session->id; $modelWishList = WishList::getListByIp($iP); $quantityWishlist = $modelWishList ? count($modelWishList) : ''; $data['quantityWishlist'] = $quantityWishlist; $data['modelWishList'] = $modelWishList; $modelCompareList = Compare::getListByIp($iP); $quantityCompareList = $modelCompareList ? count($modelCompareList) : ''; $data['quantityCompareList'] = $quantityCompareList; $data['modelCompareList '] = $modelCompareList; $quantityInCart = Cart::getQountAllByIp($iP); $data['quantityInCart'] = $quantityInCart; return $data; }