/var/www/otido-shyba/data/www/app/apps/frontend/modules/catalog/controllers/CatalogController.php(277)
265 //Это раздел - выводим список 266 $this->actionIndex($model); 267 exit(); 268 } 269 270 $criteria = new CDbCriteria(); 271 $criteria->compare('hidden', CatalogElements::HIDDEN_OFF); 272 $criteria->addSearchCondition('url', $url, false, 'OR'); 273 $criteria->addSearchCondition('id', (int)$url, false); 274 275 //Это карточка товара 276 if ( !$model = CatalogElements::model()->find($criteria)){ 277 throw new CHttpException(404,'The page can not be found.'); 278 } 279 } 280 281 $this->setSEOData($model); 282 //$modelRubric = CatalogRubrics::model()->findByPk($model->parent_id); 283 if (!$model) 284 { 285 throw new CHttpException(404,'The page can not be found.'); 286 } 287 288 //Проверяем есть ли фотогалерея, если есть - меняем содержимое страницы 289 $model->brieftext = $this->addPhotogalery($model->brieftext);
#0 |
unknown(0): CatalogController->actionElement("50430")
|
#1 |
+
–
/var/www/otido-shyba/data/www/framework/yiilite.php(4160): ReflectionMethod->invokeArgs(CatalogController, array("50430")) 4155 elseif($param->isDefaultValueAvailable()) 4156 $ps[]=$param->getDefaultValue(); 4157 else 4158 return false; 4159 } 4160 $method->invokeArgs($object,$ps); 4161 return true; 4162 } 4163 } 4164 class CInlineAction extends CAction 4165 { |
#2 |
+
–
/var/www/otido-shyba/data/www/framework/yiilite.php(4177): CAction->runWithParamsInternal(CatalogController, ReflectionMethod, array("param" => "50430")) 4172 { 4173 $methodName='action'.$this->getId(); 4174 $controller=$this->getController(); 4175 $method=new ReflectionMethod($controller, $methodName); 4176 if($method->getNumberOfParameters()>0) 4177 return $this->runWithParamsInternal($controller, $method, $params); 4178 $controller->$methodName(); 4179 return true; 4180 } 4181 } 4182 class CWebUser extends CApplicationComponent implements IWebUser |
#3 |
+
–
/var/www/otido-shyba/data/www/framework/yiilite.php(3691): CInlineAction->runWithParams(array("param" => "50430")) 3686 { 3687 $priorAction=$this->_action; 3688 $this->_action=$action; 3689 if($this->beforeAction($action)) 3690 { 3691 if($action->runWithParams($this->getActionParams())===false) 3692 $this->invalidActionParams($action); 3693 else 3694 $this->afterAction($action); 3695 } 3696 $this->_action=$priorAction; |
#4 |
+
–
/var/www/otido-shyba/data/www/framework/yiilite.php(6970): CController->runAction(CInlineAction) 6965 { 6966 $filter=$this->itemAt($this->filterIndex++); 6967 $filter->filter($this); 6968 } 6969 else 6970 $this->controller->runAction($this->action); 6971 } 6972 } 6973 class CFilter extends CComponent implements IFilter 6974 { 6975 public function filter($filterChain) |
#5 |
+
–
/var/www/otido-shyba/data/www/framework/web/widgets/COutputCache.php(165): CFilterChain->run() 160 * @return boolean whether the filtering process should stop after this filter. Defaults to false. 161 */ 162 public function filter($filterChain) 163 { 164 if(!$this->getIsContentCached()) 165 $filterChain->run(); 166 $this->run(); 167 } 168 169 /** 170 * Marks the start of content to be cached. |
#6 |
+
–
/var/www/otido-shyba/data/www/framework/yiilite.php(6967): COutputCache->filter(CFilterChain) 6962 public function run() 6963 { 6964 if($this->offsetExists($this->filterIndex)) 6965 { 6966 $filter=$this->itemAt($this->filterIndex++); 6967 $filter->filter($this); 6968 } 6969 else 6970 $this->controller->runAction($this->action); 6971 } 6972 } |
#7 |
+
–
/var/www/otido-shyba/data/www/framework/yiilite.php(3681): CFilterChain->run() 3676 $this->runAction($action); 3677 else 3678 { 3679 $priorAction=$this->_action; 3680 $this->_action=$action; 3681 CFilterChain::create($this,$action,$filters)->run(); 3682 $this->_action=$priorAction; 3683 } 3684 } 3685 public function runAction($action) 3686 { |
#8 |
+
–
/var/www/otido-shyba/data/www/framework/yiilite.php(3666): CController->runActionWithFilters(CInlineAction, array(array(0 => "COutputCache", "duration" => 0, "requestTypes" => array("GET"), "varyByRoute" => true))) 3661 { 3662 if(($parent=$this->getModule())===null) 3663 $parent=Yii::app(); 3664 if($parent->beforeControllerAction($this,$action)) 3665 { 3666 $this->runActionWithFilters($action,$this->filters()); 3667 $parent->afterControllerAction($this,$action); 3668 } 3669 } 3670 else 3671 $this->missingAction($actionID); |
#9 |
+
–
/var/www/otido-shyba/data/www/framework/yiilite.php(1775): CController->run("element") 1770 { 1771 list($controller,$actionID)=$ca; 1772 $oldController=$this->_controller; 1773 $this->_controller=$controller; 1774 $controller->init(); 1775 $controller->run($actionID); 1776 $this->_controller=$oldController; 1777 } 1778 else 1779 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 1780 array('{route}'=>$route===''?$this->defaultController:$route))); |
#10 |
+
–
/var/www/otido-shyba/data/www/framework/yiilite.php(1695): CWebApplication->runController("catalog/catalog/element") 1690 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 1691 $_GET[$name]=$value; 1692 } 1693 else 1694 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 1695 $this->runController($route); 1696 } 1697 protected function registerCoreComponents() 1698 { 1699 parent::registerCoreComponents(); 1700 $components=array( |
#11 |
+
–
/var/www/otido-shyba/data/www/framework/yiilite.php(1212): CWebApplication->processRequest() 1207 public function run() 1208 { 1209 if($this->hasEventHandler('onBeginRequest')) 1210 $this->onBeginRequest(new CEvent($this)); 1211 register_shutdown_function(array($this,'end'),0,false); 1212 $this->processRequest(); 1213 if($this->hasEventHandler('onEndRequest')) 1214 $this->onEndRequest(new CEvent($this)); 1215 } 1216 public function end($status=0,$exit=true) 1217 { |
#12 |
+
–
/var/www/otido-shyba/data/www/otido-shyba.ru/index.php(6): CApplication->run() 1 <?php 2 3 require_once( __DIR__ . '/../app/config/settings.php' ); 4 require_once( __DIR__ . '/../framework/yiilite.php'); 5 6 Yii::createWebApplication( __DIR__ . '/../app/config/frontend.php' )->run(); |