/home1/amronewm/public_html/framework/db/CDbConnection.php(382)
370 throw new CDbException('CDbConnection.connectionString cannot be empty.'); 371 try 372 { 373 Yii::trace('Opening DB connection','system.db.CDbConnection'); 374 $this->_pdo=$this->createPdoInstance(); 375 $this->initConnection($this->_pdo); 376 $this->_active=true; 377 } 378 catch(PDOException $e) 379 { 380 if(YII_DEBUG) 381 { 382 throw new CDbException('CDbConnection failed to open the DB connection: '. 383 $e->getMessage(),(int)$e->getCode(),$e->errorInfo); 384 } 385 else 386 { 387 Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException'); 388 throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo); 389 } 390 } 391 } 392 } 393 394 /**
#0 |
+
–
/home1/amronewm/public_html/framework/db/CDbConnection.php(330): CDbConnection->open() 325 public function setActive($value) 326 { 327 if($value!=$this->_active) 328 { 329 if($value) 330 $this->open(); 331 else 332 $this->close(); 333 } 334 } 335 |
#1 |
+
–
/home1/amronewm/public_html/framework/db/CDbConnection.php(308): CDbConnection->setActive(true) 303 */ 304 public function init() 305 { 306 parent::init(); 307 if($this->autoConnect) 308 $this->setActive(true); 309 } 310 311 /** 312 * Returns whether the DB connection is established. 313 * @return boolean whether the DB connection is established |
#2 |
+
–
/home1/amronewm/public_html/framework/base/CModule.php(387): CDbConnection->init() 382 if(!isset($config['enabled']) || $config['enabled']) 383 { 384 Yii::trace("Loading \"$id\" application component",'system.CModule'); 385 unset($config['enabled']); 386 $component=Yii::createComponent($config); 387 $component->init(); 388 return $this->_components[$id]=$component; 389 } 390 } 391 } 392 |
#3 |
+
–
/home1/amronewm/public_html/framework/web/auth/CDbAuthManager.php(589): CModule->getComponent("db") 584 */ 585 protected function getDbConnection() 586 { 587 if($this->db!==null) 588 return $this->db; 589 elseif(($this->db=Yii::app()->getComponent($this->connectionID)) instanceof CDbConnection) 590 return $this->db; 591 else 592 throw new CException(Yii::t('yii','CDbAuthManager.connectionID "{id}" is invalid. Please make sure it refers to the ID of a CDbConnection application component.', 593 array('{id}'=>$this->connectionID))); 594 } |
#4 |
+
–
/home1/amronewm/public_html/framework/web/auth/CDbAuthManager.php(59): CDbAuthManager->getDbConnection() 54 * This method overrides the parent implementation by establishing the database connection. 55 */ 56 public function init() 57 { 58 parent::init(); 59 $this->_usingSqlite=!strncmp($this->getDbConnection()->getDriverName(),'sqlite',6); 60 } 61 62 /** 63 * Performs access check for the specified user. 64 * @param string $itemName the name of the operation that need access check |
#5 |
+
–
/home1/amronewm/public_html/framework/base/CModule.php(387): CDbAuthManager->init() 382 if(!isset($config['enabled']) || $config['enabled']) 383 { 384 Yii::trace("Loading \"$id\" application component",'system.CModule'); 385 unset($config['enabled']); 386 $component=Yii::createComponent($config); 387 $component->init(); 388 return $this->_components[$id]=$component; 389 } 390 } 391 } 392 |
#6 |
+
–
/home1/amronewm/public_html/framework/web/CWebApplication.php(185): CModule->getComponent("authManager") 180 /** 181 * @return IAuthManager the authorization manager component 182 */ 183 public function getAuthManager() 184 { 185 return $this->getComponent('authManager'); 186 } 187 188 /** 189 * @return CAssetManager the asset manager component 190 */ |
#7 |
+
–
/home1/amronewm/public_html/framework/web/auth/CWebUser.php(815): CWebApplication->getAuthManager() 810 public function checkAccess($operation,$params=array(),$allowCaching=true) 811 { 812 if($allowCaching && $params===array() && isset($this->_access[$operation])) 813 return $this->_access[$operation]; 814 815 $access=Yii::app()->getAuthManager()->checkAccess($operation,$this->getId(),$params); 816 if($allowCaching && $params===array()) 817 $this->_access[$operation]=$access; 818 819 return $access; 820 } |
#8 |
+
–
/home1/amronewm/public_html/protected/modules/rights/components/RWebUser.php(43): CWebUser->checkAccess("Posts.*", array(), true) 38 * @return boolean whether the operations can be performed by this user. 39 */ 40 public function checkAccess($operation, $params=array(), $allowCaching=true) 41 { 42 // Allow superusers access implicitly and do CWebUser::checkAccess for others. 43 return $this->isSuperuser===true ? true : parent::checkAccess($operation, $params, $allowCaching); 44 } 45 46 /** 47 * @param boolean $value whether the user is a superuser. 48 */ |
#9 |
+
–
/home1/amronewm/public_html/protected/modules/rights/components/RightsFilter.php(43): RWebUser->checkAccess("Posts.*") 38 39 // Append the controller id to the authorization item name 40 $authItem .= ucfirst($controller->id); 41 42 // Check if user has access to the controller 43 if( $user->checkAccess($authItem.'.*')!==true ) 44 { 45 // Append the action id to the authorization item name 46 $authItem .= '.'.ucfirst($action->id); 47 48 // Check if the user has access to the controller action |
#10 |
+
–
/home1/amronewm/public_html/framework/web/filters/CFilter.php(38): RightsFilter->preFilter(CFilterChain) 33 * if the action should be executed. 34 * @param CFilterChain $filterChain the filter chain that the filter is on. 35 */ 36 public function filter($filterChain) 37 { 38 if($this->preFilter($filterChain)) 39 { 40 $filterChain->run(); 41 $this->postFilter($filterChain); 42 } 43 } |
#11 |
+
–
/home1/amronewm/public_html/protected/modules/rights/components/RController.php(36): CFilter->filter(CFilterChain) 31 */ 32 public function filterRights($filterChain) 33 { 34 $filter = new RightsFilter; 35 $filter->allowedActions = $this->allowedActions(); 36 $filter->filter($filterChain); 37 } 38 39 /** 40 * @return string the actions that are always allowed separated by commas. 41 */ |
#12 |
+
–
/home1/amronewm/public_html/framework/web/filters/CInlineFilter.php(58): RController->filterRights(CFilterChain) 53 * @param CFilterChain $filterChain the filter chain that the filter is on. 54 */ 55 public function filter($filterChain) 56 { 57 $method='filter'.$this->name; 58 $filterChain->controller->$method($filterChain); 59 } 60 } |
#13 |
+
–
/home1/amronewm/public_html/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter(CFilterChain) 125 { 126 if($this->offsetExists($this->filterIndex)) 127 { 128 $filter=$this->itemAt($this->filterIndex++); 129 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 130 $filter->filter($this); 131 } 132 else 133 $this->controller->runAction($this->action); 134 } 135 } |
#14 |
+
–
/home1/amronewm/public_html/framework/web/CController.php(291): CFilterChain->run() 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); 292 $this->_action=$priorAction; 293 } 294 } 295 296 /** |
#15 |
+
–
/home1/amronewm/public_html/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array("rights")) 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 |
+
–
/home1/amronewm/public_html/framework/web/CWebApplication.php(282): CController->run("view") 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))); |
#17 |
+
–
/home1/amronewm/public_html/framework/web/CWebApplication.php(141): CWebApplication->runController("posts/view") 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. |
#18 |
+
–
/home1/amronewm/public_html/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 /** |
#19 |
+
–
/home1/amronewm/public_html/index.php(13): CApplication->run() 08 defined('YII_DEBUG') or define('YII_DEBUG',true); 09 // specify how many levels of call stack should be shown in each log message 10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 11 12 require_once($yii); 13 Yii::createWebApplication($config)->run(); |