/var/www/vhosts/val.ua/protected/controllers/SiteController.php(41)
29 30 31 public function getMenu() { 32 return NewsCategory::model()->findAll(); 33 } 34 35 public function init() { 36 37 $url = explode("/", Yii::app()->request->requestUri); 38 $categoryId = null; 39 40 if(in_array('category', $url)){ 41 $categoryId = $_GET['id'] ? $_GET['id'] : null; 42 } 43 44 $this->menu = $this->getMenu(); 45 $this->categoryId = $categoryId; 46 47 return $this->menu; 48 49 } 50 51 /** 52 * This is the default 'index' action that is invoked 53 * when an action is not explicitly requested by users.
#0 |
+
–
/var/www/vhosts/val.ua/framework/web/CWebApplication.php(281): SiteController->init() 276 if(($ca=$this->createController($route))!==null) 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}".', |
#1 |
+
–
/var/www/vhosts/val.ua/framework/web/CWebApplication.php(141): CWebApplication->runController("site/category") 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. |
#2 |
+
–
/var/www/vhosts/val.ua/framework/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 /** |
#3 |
+
–
/var/www/vhosts/val.ua/index.php(14): CApplication->run() 09 defined('YII_ENABLE_EXCEPTION_HANDLER') or define('YII_ENABLE_EXCEPTION_HANDLER',true); 10 11 // specify how many levels of call stack should be shown in each log message 12 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3); 13 require_once($yii); 14 Yii::createWebApplication($config)->run(); |