/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/controllers/FrontProductController.php(238): spl_autoload_call("StoreProduct") 233 */ 234 protected function _loadModel($url) 235 { 236 $this->activeProduct = false; 237 238 $this->model = StoreProduct::model() 239 ->active()->initialized()->activeCategories() 240 ->withUrl($url) 241 ->find(); 242 243 if($this->model) |
#2 |
+
–
/var/www/4shooters/data/protected/modules/store/controllers/FrontProductController.php(16): FrontProductController->_loadModel("mag-wal-p99-40sw-12rd-20180124135453") 11 */ 12 public function actionView($url) 13 { 14 //xhprof_enable(XHPROF_FLAGS_CPU + XHPROF_FLAGS_MEMORY); 15 16 $this->_loadModel($url); 17 18 $view = $this->setDesign($this->model, 'view'); 19 20 $this->render($view, [ 21 'model' => $this->model, |
#3 |
unknown(0): FrontProductController->actionView("mag-wal-p99-40sw-12rd-20180124135453")
|
#4 |
+
–
/var/www/4shooters/data/framework/web/actions/CAction.php(115): ReflectionMethod->invokeArgs(FrontProductController, array("mag-wal-p99-40sw-12rd-20180124135453")) 110 elseif($param->isDefaultValueAvailable()) 111 $ps[]=$param->getDefaultValue(); 112 else 113 return false; 114 } 115 $method->invokeArgs($object,$ps); 116 return true; 117 } 118 } |
#5 |
+
–
/var/www/4shooters/data/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(FrontProductController, ReflectionMethod, array("url" => "mag-wal-p99-40sw-12rd-20180124135453")) 42 { 43 $methodName='action'.$this->getId(); 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 49 $controller->$methodName(); 50 return true; 51 } 52 } |
#6 |
+
–
/var/www/4shooters/data/framework/web/CController.php(308): CInlineAction->runWithParams(array("url" => "mag-wal-p99-40sw-12rd-20180124135453")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#7 |
+
–
/var/www/4shooters/data/framework/web/CController.php(286): CController->runAction(CInlineAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#8 |
+
–
/var/www/4shooters/data/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, null) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#9 |
+
–
/var/www/4shooters/data/framework/web/CWebApplication.php(282): CController->run("view") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#10 |
+
–
/var/www/4shooters/data/framework/web/CWebApplication.php(141): CWebApplication->runController("store/frontProduct/view") 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. 146 * This method overrides the parent implementation by registering additional core components. |
#11 |
+
–
/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 /** |
#12 |
+
–
/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(); |