/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/protected/modules/store/components/SStoreProductUrlRule.php(72): spl_autoload_call("StoreProduct") 67 } 68 69 if(preg_match('/(.*)-(\d{4,5})$/', $pathInfo, $matches) > 0) 70 { 71 Yii::import('application.modules.store.models.StoreProduct'); 72 $count = StoreProduct::model()->count('url=:url', array(':url' => $pathInfo)); 73 74 if($count) 75 { 76 $_GET['url'] = $pathInfo; 77 } |
#2 |
+
–
/var/www/4shooters/data/framework/web/CUrlManager.php(372): SStoreProductUrlRule->parseUrl(SUrlManager, SHttpRequest, "bc-super-black-touch-up-pen-gloss-19828", "product/bc-super-black-touch-up-pen-gloss-19828.html") 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))); |
#3 |
+
–
/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'] |
#4 |
+
–
/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. |
#5 |
+
–
/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 /** |
#6 |
+
–
/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(); |