/disk/www/edu2/www/protected/controllers/NewsController.php(8)
01 <? 02 class NewsController extends Controller 03 { 04 05 06 public function actionIndex() 07 { 08 $news = Yii::app()->db4->createCommand() 09 ->select('*') 10 ->from('b_iblock_section_element r') 11 ->join('b_iblock_element n', 'r.IBLOCK_ELEMENT_ID=n.ID') 12 ->where('r.IBLOCK_SECTION_ID=:id', array(':id' => 767)) 13 ->order('n.DATE_CREATE DESC') 14 ->queryAll(); 15 $this->render('index', array('news' => $news)); 16 } 17 18 public function actionView($id) 19 { 20 $model = News::model()->findByPk($id);
#0 |
+
–
/disk/www/edu2/framework/db/CDbConnection.php(313): CDbConnection->open() 308 public function setActive($value) 309 { 310 if($value!=$this->_active) 311 { 312 if($value) 313 $this->open(); 314 else 315 $this->close(); 316 } 317 } 318 |
#1 |
+
–
/disk/www/edu2/framework/db/CDbConnection.php(291): CDbConnection->setActive(true) 286 */ 287 public function init() 288 { 289 parent::init(); 290 if($this->autoConnect) 291 $this->setActive(true); 292 } 293 294 /** 295 * Returns whether the DB connection is established. 296 * @return boolean whether the DB connection is established |
#2 |
+
–
/disk/www/edu2/framework/base/CModule.php(372): CDbConnection->init() 367 if(!isset($config['enabled']) || $config['enabled']) 368 { 369 Yii::trace("Loading \"$id\" application component",'system.CModule'); 370 unset($config['enabled']); 371 $component=Yii::createComponent($config); 372 $component->init(); 373 return $this->_components[$id]=$component; 374 } 375 } 376 } 377 |
#3 |
+
–
/disk/www/edu2/framework/base/CModule.php(86): CModule->getComponent("db4") 81 * @return mixed the named property value 82 */ 83 public function __get($name) 84 { 85 if($this->hasComponent($name)) 86 return $this->getComponent($name); 87 else 88 return parent::__get($name); 89 } 90 91 /** |
#4 |
+
–
/disk/www/edu2/www/protected/controllers/NewsController.php(8): CModule->__get("db4") 03 { 04 05 06 public function actionIndex() 07 { 08 $news = Yii::app()->db4->createCommand() 09 ->select('*') 10 ->from('b_iblock_section_element r') 11 ->join('b_iblock_element n', 'r.IBLOCK_ELEMENT_ID=n.ID') 12 ->where('r.IBLOCK_SECTION_ID=:id', array(':id' => 767)) 13 ->order('n.DATE_CREATE DESC') |
#5 |
+
–
/disk/www/edu2/framework/web/actions/CInlineAction.php(50): NewsController->actionIndex() 45 $controller=$this->getController(); 46 $method=new ReflectionMethod($controller, $methodName); 47 if($method->getNumberOfParameters()>0) 48 return $this->runWithParamsInternal($controller, $method, $params); 49 else 50 return $controller->$methodName(); 51 } 52 53 } |
#6 |
+
–
/disk/www/edu2/framework/web/CController.php(300): CInlineAction->runWithParams(array()) 295 { 296 $priorAction=$this->_action; 297 $this->_action=$action; 298 if($this->beforeAction($action)) 299 { 300 if($action->runWithParams($this->getActionParams())===false) 301 $this->invalidActionParams($action); 302 else 303 $this->afterAction($action); 304 } 305 $this->_action=$priorAction; |
#7 |
+
–
/disk/www/edu2/framework/web/filters/CFilterChain.php(134): CController->runAction(CInlineAction) 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
#8 |
+
–
/disk/www/edu2/framework/web/filters/CFilter.php(41): CFilterChain->run() 36 */ 37 public function filter($filterChain) 38 { 39 if($this->preFilter($filterChain)) 40 { 41 $filterChain->run(); 42 $this->postFilter($filterChain); 43 } 44 } 45 46 /** |
#9 |
+
–
/disk/www/edu2/framework/web/CController.php(1144): CFilter->filter(CFilterChain) 1139 */ 1140 public function filterAccessControl($filterChain) 1141 { 1142 $filter=new CAccessControlFilter; 1143 $filter->setRules($this->accessRules()); 1144 $filter->filter($filterChain); 1145 } 1146 1147 /** 1148 * Generates pagination information. 1149 * This method can be used to generate pagination information given item count |
#10 |
+
–
/disk/www/edu2/framework/web/filters/CInlineFilter.php(59): CController->filterAccessControl(CFilterChain) 54 * @param CFilterChain $filterChain the filter chain that the filter is on. 55 */ 56 public function filter($filterChain) 57 { 58 $method='filter'.$this->name; 59 $filterChain->controller->$method($filterChain); 60 } 61 } |
#11 |
+
–
/disk/www/edu2/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter(CFilterChain) 126 { 127 if($this->offsetExists($this->filterIndex)) 128 { 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
#12 |
+
–
/disk/www/edu2/framework/web/CController.php(283): CFilterChain->run() 278 $this->runAction($action); 279 else 280 { 281 $priorAction=$this->_action; 282 $this->_action=$action; 283 CFilterChain::create($this,$action,$filters)->run(); 284 $this->_action=$priorAction; 285 } 286 } 287 288 /** |
#13 |
+
–
/disk/www/edu2/framework/web/CController.php(257): CController->runActionWithFilters(CInlineAction, array("accessControl")) 252 { 253 if(($parent=$this->getModule())===null) 254 $parent=Yii::app(); 255 if($parent->beforeControllerAction($this,$action)) 256 { 257 $this->runActionWithFilters($action,$this->filters()); 258 $parent->afterControllerAction($this,$action); 259 } 260 } 261 else 262 $this->missingAction($actionID); |
#14 |
+
–
/disk/www/edu2/framework/web/CWebApplication.php(277): CController->run("") 272 { 273 list($controller,$actionID)=$ca; 274 $oldController=$this->_controller; 275 $this->_controller=$controller; 276 $controller->init(); 277 $controller->run($actionID); 278 $this->_controller=$oldController; 279 } 280 else 281 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 282 array('{route}'=>$route===''?$this->defaultController:$route))); |
#15 |
+
–
/disk/www/edu2/framework/web/CWebApplication.php(136): CWebApplication->runController("news") 131 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 132 $_GET[$name]=$value; 133 } 134 else 135 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 136 $this->runController($route); 137 } 138 139 /** 140 * Registers the core application components. 141 * This method overrides the parent implementation by registering additional core components. |
#16 |
+
–
/disk/www/edu2/framework/base/CApplication.php(158): CWebApplication->processRequest() 153 */ 154 public function run() 155 { 156 if($this->hasEventHandler('onBeginRequest')) 157 $this->onBeginRequest(new CEvent($this)); 158 $this->processRequest(); 159 if($this->hasEventHandler('onEndRequest')) 160 $this->onEndRequest(new CEvent($this)); 161 } 162 163 /** |
#17 |
+
–
/disk/www/edu2/www/index.php(23): CApplication->run() 18 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3); 19 //defined('YII_ENABLE_ERROR_HANDLER',false); 20 //defined('YII_ENABLE_EXCEPTION_HANDLER',false); 21 require_once($yii); 22 23 Yii::createWebApplication($config)->run(); 24 25 } |