/var/www/lifedeco/data/www/yii/db/ar/CActiveRecord.php(145)
133 */ 134 public function __get($name) 135 { 136 if(isset($this->_attributes[$name])) 137 return $this->_attributes[$name]; 138 elseif(isset($this->getMetaData()->columns[$name])) 139 return null; 140 elseif(isset($this->_related[$name])) 141 return $this->_related[$name]; 142 elseif(isset($this->getMetaData()->relations[$name])) 143 return $this->getRelated($name); 144 else 145 return parent::__get($name); 146 } 147 148 /** 149 * PHP setter magic method. 150 * This method is overridden so that AR attributes can be accessed like properties. 151 * @param string $name property name 152 * @param mixed $value property value 153 */ 154 public function __set($name,$value) 155 { 156 if($this->setAttribute($name,$value)===false) 157 {
#0 |
+
–
/var/www/lifedeco/data/www/yii/db/ar/CActiveRecord.php(145): CComponent->__get("banner_img") 140 elseif(isset($this->_related[$name])) 141 return $this->_related[$name]; 142 elseif(isset($this->getMetaData()->relations[$name])) 143 return $this->getRelated($name); 144 else 145 return parent::__get($name); 146 } 147 148 /** 149 * PHP setter magic method. 150 * This method is overridden so that AR attributes can be accessed like properties. |
#1 |
+
–
/var/www/lifedeco/data/www/lifedeco.kz/protected/modules/struct/models/StructCategory.php(889): CActiveRecord->__get("banner_img") 884 return isset($this->data[$name]) 885 ? $this->data[$name] : NULL; 886 } 887 } 888 889 return parent::__get($name); 890 } 891 892 public function getAttribute($name) 893 { 894 // если не сделать этого, произойдет ситуация, когда обращение |
#2 |
+
–
/var/www/lifedeco/data/www/lifedeco.kz/protected/views/templates/catalog/template.php(216): StructCategory->__get("banner_img") 211 <h1 style="font-size:25px; color:#ccc; margin:20px 0 10px 0; font-family: 'Roboto Condensed',sans-serif !important; font-weight: 400; text-transform:uppercase;"><?= Yii::t('custom', 'Мебель для офиса') ?></h1> 212 </div> 213 <? endif ?> 214 <div class="row hidden-sm"> 215 <? 216 $banner_img = Yii::app()->storage->decodeImages($category->banner_img); 217 if ($banner_img && $bannerImgUrl = Yii::app()->storage->createUrl(current($banner_img), 'catalog_banner')) { 218 $style = "background: url('{$bannerImgUrl}') no-repeat center;"; 219 ?> 220 <a <?= $category->issetCustomField('banner_link') && $category->banner_link ? "href='{$category->banner_link}'" : '' ?> 221 id="banner" style="<?= $style ?>"> |
#3 |
+
–
/var/www/lifedeco/data/www/lifedeco.kz/protected/views/category.php(45): include("/var/www/lifedeco/data/www/lifedeco.kz/protected/views/templates...") 40 $parent = $parent->parent; 41 } 42 } 43 44 // подгрузка шаблона 45 include '/'.Yii::app()->struct->getTemplatePath('category', $template); 46 47 |
#4 |
+
–
/var/www/lifedeco/data/www/yii/web/CBaseController.php(126): require("/var/www/lifedeco/data/www/lifedeco.kz/protected/views/category....") 121 $data=$_data_; 122 if($_return_) 123 { 124 ob_start(); 125 ob_implicit_flush(false); 126 require($_viewFile_); 127 return ob_get_clean(); 128 } 129 else 130 require($_viewFile_); 131 } |
#5 |
+
–
/var/www/lifedeco/data/www/yii/web/CBaseController.php(95): CBaseController->renderInternal("/var/www/lifedeco/data/www/lifedeco.kz/protected/views/category....", array("categoryID" => "970", "category" => StructCategory, "sale" => "1", "existingCategories" => array("619", "1", "18", "107", ...), ...), true) 090 { 091 $widgetCount=count($this->_widgetStack); 092 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 093 $content=$renderer->renderFile($this,$viewFile,$data,$return); 094 else 095 $content=$this->renderInternal($viewFile,$data,$return); 096 if(count($this->_widgetStack)===$widgetCount) 097 return $content; 098 else 099 { 100 $widget=end($this->_widgetStack); |
#6 |
+
–
/var/www/lifedeco/data/www/yii/web/CController.php(869): CBaseController->renderFile("/var/www/lifedeco/data/www/lifedeco.kz/protected/views/category....", array("categoryID" => "970", "category" => StructCategory, "sale" => "1", "existingCategories" => array("619", "1", "18", "107", ...), ...), true) 864 */ 865 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 866 { 867 if(($viewFile=$this->getViewFile($view))!==false) 868 { 869 $output=$this->renderFile($viewFile,$data,true); 870 if($processOutput) 871 $output=$this->processOutput($output); 872 if($return) 873 return $output; 874 else |
#7 |
+
–
/var/www/lifedeco/data/www/yii/web/CController.php(782): CController->renderPartial("/category", array("categoryID" => "970", "category" => StructCategory, "sale" => "1", "existingCategories" => array("619", "1", "18", "107", ...), ...), true) 777 */ 778 public function render($view,$data=null,$return=false) 779 { 780 if($this->beforeRender($view)) 781 { 782 $output=$this->renderPartial($view,$data,true); 783 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 784 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 785 786 $this->afterRender($view,$output); 787 |
#8 |
+
–
/var/www/lifedeco/data/www/lifedeco.kz/protected/extensions/extcore/ExtCoreController.php(227): CController->render("/category", array("categoryID" => "970", "category" => StructCategory, "sale" => "1", "existingCategories" => array("619", "1", "18", "107", ...), ...), false) 222 223 public function render($view, $data=null, $return=false) 224 { 225 if(Yii::app()->request->isAjaxRequest) 226 return $this->renderPartial($view, $data, $return); 227 else return parent::render($view, $data, $return); 228 } 229 230 /* 231 public function render($view, $data=null, $return=false) 232 { |
#9 |
+
–
/var/www/lifedeco/data/www/lifedeco.kz/protected/controllers/SaleController.php(43): ExtCoreController->render("/category", array("categoryID" => "970", "category" => StructCategory, "sale" => "1", "existingCategories" => array("619", "1", "18", "107", ...), ...)) 38 'categoryID' => $categoryID, 39 'category' => $category, 40 'sale' => '1', 41 'existingCategories' => $existingCategories, 42 'dataProvider' => Yii::app()->custom->getActiveDataProviderForCatalog($this->model, false), 43 'currentUrl' => $this->createUrl('index'), 44 )); 45 } 46 } |
#10 |
unknown(0): SaleController->actionIndex("970", null)
|
#11 |
+
–
/var/www/lifedeco/data/www/yii/web/actions/CAction.php(108): ReflectionMethod->invokeArgs(SaleController, array("970", null)) 103 elseif($param->isDefaultValueAvailable()) 104 $ps[]=$param->getDefaultValue(); 105 else 106 return false; 107 } 108 $method->invokeArgs($object,$ps); 109 return true; 110 } 111 } |
#12 |
+
–
/var/www/lifedeco/data/www/yii/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(SaleController, ReflectionMethod, array("categoryID" => "970")) 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 else 49 return $controller->$methodName(); 50 } 51 52 } |
#13 |
+
–
/var/www/lifedeco/data/www/yii/web/CController.php(308): CInlineAction->runWithParams(array("categoryID" => "970")) 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; |
#14 |
+
–
/var/www/lifedeco/data/www/yii/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(); |
#15 |
+
–
/var/www/lifedeco/data/www/yii/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array()) 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); |
#16 |
+
–
/var/www/lifedeco/data/www/lifedeco.kz/protected/extensions/extcore/ExtCoreController.php(219): CController->run("index") 214 Yii::app()->raiseEvent('onBeginControllerAction', new CEvent($this)); 215 $this->lastActionID = $actionID; 216 217 //echo "ACTION RUN END ($actionID): " . round(microtime(1) - MICRO_TIME, 2) . "<br/>"; 218 219 parent::run($actionID); 220 Yii::app()->raiseEvent('onEndControllerAction', new CEvent($this)); 221 } 222 223 public function render($view, $data=null, $return=false) 224 { |
#17 |
+
–
/var/www/lifedeco/data/www/yii/web/CWebApplication.php(282): ExtCoreController->run("index") 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))); |
#18 |
+
–
/var/www/lifedeco/data/www/yii/web/CController.php(752): CWebApplication->runController("/sale/index/970") 747 $this->run($route); 748 else 749 { 750 if($route[0]!=='/' && ($module=$this->getModule())!==null) 751 $route=$module->getId().'/'.$route; 752 Yii::app()->runController($route); 753 } 754 if($exit) 755 Yii::app()->end(); 756 } 757 |
#19 |
+
–
/var/www/lifedeco/data/www/lifedeco.kz/protected/extensions/extcore/ExtCoreController.php(314): CController->forward("/sale/index/970", true) 309 } 310 311 312 public function forward($route, $exit = true) { 313 $_GET = array(); 314 return parent::forward($route, $exit); 315 } 316 } |
#20 |
+
–
/var/www/lifedeco/data/www/lifedeco.kz/protected/modules/struct/controllers/StructController.php(120): ExtCoreController->forward("/sale/index/970") 115 /** @todo: реализовать передачу управления контроллерам и модулям */ 116 else if($category->type == 'controller'){ 117 if(!sizeof($arguments) || !$this->actionPage(current($arguments))){ 118 $_GET = array(); 119 $route = '/'.$category->handler.'/'.(($args=implode('/', $arguments))?$args:'index'); 120 $this->forward($route); 121 } 122 else return; 123 } 124 125 throw new CHttpException(404); |
#21 |
unknown(0): StructController->actionIndex("sale", StructCategory, array("index", "970"), array("sale"), ...)
|
#22 |
+
–
/var/www/lifedeco/data/www/yii/web/actions/CAction.php(108): ReflectionMethod->invokeArgs(StructController, array("sale", StructCategory, array("index", "970"), array("sale"), ...)) 103 elseif($param->isDefaultValueAvailable()) 104 $ps[]=$param->getDefaultValue(); 105 else 106 return false; 107 } 108 $method->invokeArgs($object,$ps); 109 return true; 110 } 111 } |
#23 |
+
–
/var/www/lifedeco/data/www/yii/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(StructController, ReflectionMethod, array("alias" => "sale", "category" => StructCategory, "arguments" => array("index", "970"), "hierarchy" => array("sale"), ...)) 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 else 49 return $controller->$methodName(); 50 } 51 52 } |
#24 |
+
–
/var/www/lifedeco/data/www/yii/web/CController.php(308): CInlineAction->runWithParams(array("alias" => "sale", "category" => StructCategory, "arguments" => array("index", "970"), "hierarchy" => array("sale"), ...)) 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; |
#25 |
+
–
/var/www/lifedeco/data/www/yii/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(); |
#26 |
+
–
/var/www/lifedeco/data/www/yii/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array()) 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); |
#27 |
+
–
/var/www/lifedeco/data/www/lifedeco.kz/protected/extensions/extcore/ExtCoreController.php(219): CController->run("") 214 Yii::app()->raiseEvent('onBeginControllerAction', new CEvent($this)); 215 $this->lastActionID = $actionID; 216 217 //echo "ACTION RUN END ($actionID): " . round(microtime(1) - MICRO_TIME, 2) . "<br/>"; 218 219 parent::run($actionID); 220 Yii::app()->raiseEvent('onEndControllerAction', new CEvent($this)); 221 } 222 223 public function render($view, $data=null, $return=false) 224 { |
#28 |
+
–
/var/www/lifedeco/data/www/yii/web/CWebApplication.php(282): ExtCoreController->run("") 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))); |
#29 |
+
–
/var/www/lifedeco/data/www/yii/web/CWebApplication.php(141): CWebApplication->runController("struct") 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. |
#30 |
+
–
/var/www/lifedeco/data/www/yii/base/CApplication.php(180): CWebApplication->processRequest() 175 public function run() 176 { 177 if($this->hasEventHandler('onBeginRequest')) 178 $this->onBeginRequest(new CEvent($this)); 179 register_shutdown_function(array($this,'end'),0,false); 180 $this->processRequest(); 181 if($this->hasEventHandler('onEndRequest')) 182 $this->onEndRequest(new CEvent($this)); 183 } 184 185 /** |
#31 |
+
–
/var/www/lifedeco/data/www/lifedeco.kz/index.php(23): CApplication->run() 18 // specify how many levels of call stack should be shown in each log message 19 //defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 20 21 require_once($yii); 22 Yii::$classMap['ExtCoreWebApplication'] = "protected/extensions/extcore/ExtCoreWebApplication.php"; 23 Yii::createApplication('ExtCoreWebApplication', $config)->run(); 24 //Yii::createWebApplication($config)->run(); |