/var/www/4shooters/data/protected/modules/store/models/StoreProduct.php(8024)
8012 // CLogHelper::WriteString('mxmus-goo.txt', 'findImageUrl-4-2', array( 8013 // 'eavAttributesConf' => json_encode($eavAttributesConf, JSON_UNESCAPED_UNICODE), 8014 // )); 8015 if (!empty($eavAttributesConf)) continue; 8016 } 8017 } 8018 $url = $imagesProduct->getImageUrl($image->name, $size, $clearThumb); 8019 if($url) 8020 { 8021 $filePath = Yii::getPathOfAlias('webroot') . $url; 8022 if(!file_exists($filePath)) continue; 8023 8024 $additionalImageUrls[$image->id] = $absolute ? Yii::app()->createAbsoluteUrl($url) : ($returnPath ? $filePath . $url) : $url); 8025 } 8026 } 8027 8028 if($additionalImagesMaxCount && count($additionalImageUrls) > $additionalImagesMaxCount) 8029 { 8030 $additionalImageUrls = array_slice($additionalImageUrls, 0, $additionalImagesMaxCount, true); 8031 8032 // CLogHelper::WriteString('mxmus-goo.txt', 'findImageUrl-4', array( 8033 // 'additional images count' => json_encode(count($additionalImageUrls), JSON_UNESCAPED_UNICODE), 8034 // )); 8035 } 8036
#0 |
unknown(0): YiiBase::autoload("StoreProduct")
|
#1 |
+
–
/var/www/4shooters/data/framework/db/ar/CActiveRecord.php(397): spl_autoload_call("StoreProduct") 392 { 393 if(isset(self::$_models[$className])) 394 return self::$_models[$className]; 395 else 396 { 397 $model=self::$_models[$className]=new $className(null); 398 $model->attachBehaviors($model->behaviors()); 399 return $model; 400 } 401 } 402 |
#2 |
+
–
/var/www/4shooters/data/protected/modules/store/models/StoreCategoryBase.php(62): CActiveRecord::model("StoreCategory") 57 * Returns the static model of the specified AR class. 58 * @return StoreCategory the static model class 59 */ 60 public static function model($className = __CLASS__) 61 { 62 return parent::model($className); 63 } 64 65 /** 66 * @return string the associated database table name 67 */ |
#3 |
+
–
/var/www/4shooters/data/protected/modules/store/models/StoreCategory.php(34): StoreCategoryBase::model("StoreCategory") 29 public $categorizationRelationName = 'categorization'; 30 public $urlPart = 'view'; 31 32 public static function model($className = __CLASS__) 33 { 34 return parent::model($className); 35 } 36 } 37 38 ?> |
#4 |
+
–
/var/www/4shooters/data/protected/modules/store/models/StoreCategoryBase.php(506): StoreCategory::model() 501 return $this; 502 } 503 504 public static function getAllPaths() 505 { 506 $tableName = static::model()->tableName(); 507 $cacheKey = $tableName . 'UrlRule'; 508 $allPaths = Yii::app()->cache->get($cacheKey); 509 if($allPaths === false) 510 { 511 $allPaths = Yii::app()->db->createCommand() |
#5 |
+
–
/var/www/4shooters/data/protected/modules/store/components/SStoreCategoryBaseUrlRule.php(89): StoreCategoryBase::getAllPaths() 84 return false; 85 } 86 87 protected function getAllPaths() 88 { 89 return $this->className::getAllPaths(); 90 91 /* 92 $allPaths = Yii::app()->cache->get($this->cacheKey); 93 94 if ($allPaths === false) |
#6 |
+
–
/var/www/4shooters/data/protected/modules/store/components/SStoreCategoryBaseUrlRule.php(70): SStoreCategoryBaseUrlRule->getAllPaths() 65 66 $pathInfo = strtr($pathInfo, array($this->urlPrefix => '')); 67 } 68 } 69 70 foreach ($this->getAllPaths() as $path) 71 { 72 //if ($path !== '' && strpos($pathInfo, $path) === 0) 73 if ($path !== '' && $pathInfo == $path) 74 { 75 $_GET['url'] = $path; |
#7 |
+
–
/var/www/4shooters/data/framework/web/CUrlManager.php(372): SStoreCategoryBaseUrlRule->parseUrl(SUrlManager, SHttpRequest, "uploads/product/26/26227_1262235144.jpg", "uploads/product/26/26227_1262235144.jpg") 367 $pathInfo=$this->removeUrlSuffix($rawPathInfo,$this->urlSuffix); 368 foreach($this->_rules as $i=>$rule) 369 { 370 if(is_array($rule)) 371 $this->_rules[$i]=$rule=Yii::createComponent($rule); 372 if(($r=$rule->parseUrl($this,$request,$pathInfo,$rawPathInfo))!==false) 373 return isset($_GET[$this->routeVar]) ? $_GET[$this->routeVar] : $r; 374 } 375 if($this->useStrictParsing) 376 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 377 array('{route}'=>$pathInfo))); |
#8 |
+
–
/var/www/4shooters/data/protected/components/SUrlManager.php(428): CUrlManager->parseUrl(SHttpRequest) 423 { 424 Yii::app()->request->redirect($this->createUrl('/store/category/viewManufacturer', array('url' => 'ipsc-lab')), true, 301); 425 } 426 else 427 428 return parent::parseUrl($request); 429 } 430 431 /** 432 * Scan each module dir and include routes.php 433 * Add module urls at the beginning of $config['urlManager']['rules'] |
#9 |
+
–
/var/www/4shooters/data/framework/web/CWebApplication.php(140): SUrlManager->parseUrl(SHttpRequest) 135 $route=$this->catchAllRequest[0]; 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. |
#10 |
+
–
/var/www/4shooters/data/framework/base/CApplication.php(185): CWebApplication->processRequest() 180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } 189 190 /** |
#11 |
+
–
/var/www/4shooters/data/www/4shooters.com/index.php(18): CApplication->run() 13 14 require $yii; 15 require '../../protected/components/SWebApplication.php'; 16 17 // Create application 18 Yii::createApplication('SWebApplication', $config)->run(); |