/var/www/hb9624/data/www/raido.org.ua/1/framework/db/CDbConnection.php(364)
352 throw new CDbException(Yii::t('yii','CDbConnection.connectionString cannot be empty.')); 353 try 354 { 355 Yii::trace('Opening DB connection','system.db.CDbConnection'); 356 $this->_pdo=$this->createPdoInstance(); 357 $this->initConnection($this->_pdo); 358 $this->_active=true; 359 } 360 catch(PDOException $e) 361 { 362 if(YII_DEBUG) 363 { 364 throw new CDbException(Yii::t('yii','CDbConnection failed to open the DB connection: {error}', 365 array('{error}'=>$e->getMessage())),(int)$e->getCode(),$e->errorInfo); 366 } 367 else 368 { 369 Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException'); 370 throw new CDbException(Yii::t('yii','CDbConnection failed to open the DB connection.'),(int)$e->getCode(),$e->errorInfo); 371 } 372 } 373 } 374 } 375 376 /**
#0 |
+
–
/var/www/hb9624/data/www/raido.org.ua/1/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 |
+
–
/var/www/hb9624/data/www/raido.org.ua/1/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 |
+
–
/var/www/hb9624/data/www/raido.org.ua/1/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 |
+
–
/var/www/hb9624/data/www/raido.org.ua/1/framework/base/CApplication.php(429): CModule->getComponent("db") 424 * Returns the database connection component. 425 * @return CDbConnection the database connection 426 */ 427 public function getDb() 428 { 429 return $this->getComponent('db'); 430 } 431 432 /** 433 * Returns the error handler component. 434 * @return CErrorHandler the error handler application component. |
#4 |
+
–
/var/www/hb9624/data/www/raido.org.ua/1/framework/db/ar/CActiveRecord.php(609): CApplication->getDb() 604 { 605 if(self::$db!==null) 606 return self::$db; 607 else 608 { 609 self::$db=Yii::app()->getDb(); 610 if(self::$db instanceof CDbConnection) 611 return self::$db; 612 else 613 throw new CDbException(Yii::t('yii','Active Record requires a "db" CDbConnection application component.')); 614 } |
#5 |
+
–
/var/www/hb9624/data/www/raido.org.ua/1/framework/db/ar/CActiveRecord.php(2275): CActiveRecord->getDbConnection() 2270 public function __construct($model) 2271 { 2272 $this->_model=$model; 2273 2274 $tableName=$model->tableName(); 2275 if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null) 2276 throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.', 2277 array('{class}'=>get_class($model),'{table}'=>$tableName))); 2278 if($table->primaryKey===null) 2279 { 2280 $table->primaryKey=$model->primaryKey(); |
#6 |
+
–
/var/www/hb9624/data/www/raido.org.ua/1/framework/db/ar/CActiveRecord.php(372): CActiveRecordMetaData->__construct(Documents) 367 if(isset(self::$_models[$className])) 368 return self::$_models[$className]; 369 else 370 { 371 $model=self::$_models[$className]=new $className(null); 372 $model->_md=new CActiveRecordMetaData($model); 373 $model->attachBehaviors($model->behaviors()); 374 return $model; 375 } 376 } 377 |
#7 |
+
–
/var/www/hb9624/data/www/raido.org.ua/1/framework/db/ar/CActiveRecord.php(387): CActiveRecord::model("Documents") 382 public function getMetaData() 383 { 384 if($this->_md!==null) 385 return $this->_md; 386 else 387 return $this->_md=self::model(get_class($this))->_md; 388 } 389 390 /** 391 * Refreshes the meta data for this AR class. 392 * By calling this method, this AR class will regenerate the meta data needed. |
#8 |
+
–
/var/www/hb9624/data/www/raido.org.ua/1/framework/db/ar/CActiveRecord.php(62): CActiveRecord->getMetaData() 57 if($scenario===null) // internally used by populateRecord() and model() 58 return; 59 60 $this->setScenario($scenario); 61 $this->setIsNewRecord(true); 62 $this->_attributes=$this->getMetaData()->attributeDefaults; 63 64 $this->init(); 65 66 $this->attachBehaviors($this->behaviors()); 67 $this->afterConstruct(); |
#9 |
+
–
/var/www/hb9624/data/www/raido.org.ua/1/protected/controllers/DocumentsController.php(53): CActiveRecord->__construct() 48 * Displays a particular model. 49 * @param integer $id the ID of the model to be displayed 50 */ 51 public function actionView($id) 52 { 53 $model=new Documents; 54 $criteria=new CDbCriteria; 55 $criteria->condition='id=:id'; 56 $criteria->params=array(':id'=>$id); 57 $bubls=Documents::model()->find($criteria); 58 |
#10 |
unknown(0): DocumentsController->actionView("664")
|
#11 |
+
–
/var/www/hb9624/data/www/raido.org.ua/1/framework/web/actions/CAction.php(104): ReflectionMethod->invokeArgs(DocumentsController, array("664")) 099 else if($param->isDefaultValueAvailable()) 100 $ps[]=$param->getDefaultValue(); 101 else 102 return false; 103 } 104 $method->invokeArgs($object,$ps); 105 return true; 106 } 107 } |
#12 |
+
–
/var/www/hb9624/data/www/raido.org.ua/1/framework/web/actions/CInlineAction.php(48): CAction->runWithParamsInternal(DocumentsController, ReflectionMethod, array("id" => "664")) 43 { 44 $methodName='action'.$this->getId(); 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 } |
#13 |
+
–
/var/www/hb9624/data/www/raido.org.ua/1/framework/web/CController.php(300): CInlineAction->runWithParams(array("id" => "664")) 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; |
#14 |
+
–
/var/www/hb9624/data/www/raido.org.ua/1/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 } |
#15 |
+
–
/var/www/hb9624/data/www/raido.org.ua/1/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 /** |
#16 |
+
–
/var/www/hb9624/data/www/raido.org.ua/1/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 |
#17 |
+
–
/var/www/hb9624/data/www/raido.org.ua/1/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 } |
#18 |
+
–
/var/www/hb9624/data/www/raido.org.ua/1/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 } |
#19 |
+
–
/var/www/hb9624/data/www/raido.org.ua/1/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 /** |
#20 |
+
–
/var/www/hb9624/data/www/raido.org.ua/1/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); |
#21 |
+
–
/var/www/hb9624/data/www/raido.org.ua/1/framework/web/CWebApplication.php(277): CController->run("view") 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))); |
#22 |
+
–
/var/www/hb9624/data/www/raido.org.ua/1/framework/web/CWebApplication.php(136): CWebApplication->runController("documents/view") 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. |
#23 |
+
–
/var/www/hb9624/data/www/raido.org.ua/1/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 /** |
#24 |
+
–
/var/www/hb9624/data/www/raido.org.ua/1/index.php(13): CApplication->run() 08 // specify how many levels of call stack should be shown in each log message 09 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 10 11 require_once($yii); 12 $app = Yii::createWebApplication($config); 13 $app->run(); |