/home/blogarama/new/framework/yiilite.php(8427)
8415 if(empty($this->connectionString)) 8416 throw new CDbException('CDbConnection.connectionString cannot be empty.'); 8417 try 8418 { 8419 $this->_pdo=$this->createPdoInstance(); 8420 $this->initConnection($this->_pdo); 8421 $this->_active=true; 8422 } 8423 catch(PDOException $e) 8424 { 8425 if(YII_DEBUG) 8426 { 8427 throw new CDbException('CDbConnection failed to open the DB connection: '. 8428 $e->getMessage(),(int)$e->getCode(),$e->errorInfo); 8429 } 8430 else 8431 { 8432 Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException'); 8433 throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo); 8434 } 8435 } 8436 } 8437 } 8438 protected function close() 8439 {
#0 |
+
–
/home/blogarama/new/framework/yiilite.php(8399): CDbConnection->open() 8394 public function setActive($value) 8395 { 8396 if($value!=$this->_active) 8397 { 8398 if($value) 8399 $this->open(); 8400 else 8401 $this->close(); 8402 } 8403 } 8404 public function cache($duration, $dependency=null, $queryCount=1) |
#1 |
+
–
/home/blogarama/new/framework/yiilite.php(8388): CDbConnection->setActive(true) 8383 } 8384 public function init() 8385 { 8386 parent::init(); 8387 if($this->autoConnect) 8388 $this->setActive(true); 8389 } 8390 public function getActive() 8391 { 8392 return $this->_active; 8393 } |
#2 |
+
–
/home/blogarama/new/framework/yiilite.php(1060): CDbConnection->init() 1055 $config=$this->_componentConfig[$id]; 1056 if(!isset($config['enabled']) || $config['enabled']) 1057 { 1058 unset($config['enabled']); 1059 $component=Yii::createComponent($config); 1060 $component->init(); 1061 return $this->_components[$id]=$component; 1062 } 1063 } 1064 } 1065 public function setComponent($id,$component,$merge=true) |
#3 |
+
–
/home/blogarama/new/framework/yiilite.php(1312): CModule->getComponent("db") 1307 { 1308 return $this->getLocale()->getDateFormatter(); 1309 } 1310 public function getDb() 1311 { 1312 return $this->getComponent('db'); 1313 } 1314 public function getErrorHandler() 1315 { 1316 return $this->getComponent('errorHandler'); 1317 } |
#4 |
+
–
/home/blogarama/new/framework/yiilite.php(7450): CApplication->getDb() 7445 { 7446 if(self::$db!==null) 7447 return self::$db; 7448 else 7449 { 7450 self::$db=Yii::app()->getDb(); 7451 if(self::$db instanceof CDbConnection) 7452 return self::$db; 7453 else 7454 throw new CDbException(Yii::t('yii','Active Record requires a "db" CDbConnection application component.')); 7455 } |
#5 |
+
–
/home/blogarama/new/framework/yiilite.php(7231): CActiveRecord->getDbConnection() 7226 public function init() 7227 { 7228 } 7229 public function cache($duration, $dependency=null, $queryCount=1) 7230 { 7231 $this->getDbConnection()->cache($duration, $dependency, $queryCount); 7232 return $this; 7233 } 7234 public function __sleep() 7235 { 7236 return array_keys((array)$this); |
#6 |
+
–
/home/blogarama/new/protected/controllers/SiteController.php(774): CActiveRecord->cache(3600) 769 // if (isset($params['page']) && intval($params['page']) > 1) { 770 // die("Page: ".$page); 771 // } 772 773 774 $this->blog = Site::model()->with('text', 'owner')->cache(3600)->findByPk($siteID, array("limit"=>100, "together" => true)); 775 776 if ($this->blog == null || $this->blog->active == 0) { 777 header('Location: /'); 778 //$this->render('404'); 779 return; |
#7 |
+
–
/home/blogarama/new/framework/yiilite.php(4058): SiteController->actionBlogdetails() 4053 $controller=$this->getController(); 4054 $method=new ReflectionMethod($controller, $methodName); 4055 if($method->getNumberOfParameters()>0) 4056 return $this->runWithParamsInternal($controller, $method, $params); 4057 else 4058 return $controller->$methodName(); 4059 } 4060 } 4061 class CWebUser extends CApplicationComponent implements IWebUser 4062 { 4063 const FLASH_KEY_PREFIX='Yii.CWebUser.flash.'; |
#8 |
+
–
/home/blogarama/new/framework/yiilite.php(3570): CInlineAction->runWithParams(array("r" => "site/blogdetails", "siteId" => "52529", "postid" => "5225465")) 3565 { 3566 $priorAction=$this->_action; 3567 $this->_action=$action; 3568 if($this->beforeAction($action)) 3569 { 3570 if($action->runWithParams($this->getActionParams())===false) 3571 $this->invalidActionParams($action); 3572 else 3573 $this->afterAction($action); 3574 } 3575 $this->_action=$priorAction; |
#9 |
+
–
/home/blogarama/new/framework/yiilite.php(6743): CController->runAction(CInlineAction) 6738 { 6739 $filter=$this->itemAt($this->filterIndex++); 6740 $filter->filter($this); 6741 } 6742 else 6743 $this->controller->runAction($this->action); 6744 } 6745 } 6746 class CFilter extends CComponent implements IFilter 6747 { 6748 public function filter($filterChain) |
#10 |
+
–
/home/blogarama/new/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. |
#11 |
+
–
/home/blogarama/new/framework/yiilite.php(6740): COutputCache->filter(CFilterChain) 6735 public function run() 6736 { 6737 if($this->offsetExists($this->filterIndex)) 6738 { 6739 $filter=$this->itemAt($this->filterIndex++); 6740 $filter->filter($this); 6741 } 6742 else 6743 $this->controller->runAction($this->action); 6744 } 6745 } |
#12 |
+
–
/home/blogarama/new/framework/yiilite.php(3560): CFilterChain->run() 3555 $this->runAction($action); 3556 else 3557 { 3558 $priorAction=$this->_action; 3559 $this->_action=$action; 3560 CFilterChain::create($this,$action,$filters)->run(); 3561 $this->_action=$priorAction; 3562 } 3563 } 3564 public function runAction($action) 3565 { |
#13 |
+
–
/home/blogarama/new/framework/yiilite.php(3545): CController->runActionWithFilters(CInlineAction, array(array(0 => "COutputCache", "duration" => 3600, "requestTypes" => array("GET"), "varyByRoute" => true, ...))) 3540 { 3541 if(($parent=$this->getModule())===null) 3542 $parent=Yii::app(); 3543 if($parent->beforeControllerAction($this,$action)) 3544 { 3545 $this->runActionWithFilters($action,$this->filters()); 3546 $parent->afterControllerAction($this,$action); 3547 } 3548 } 3549 else 3550 $this->missingAction($actionID); |
#14 |
+
–
/home/blogarama/new/framework/yiilite.php(1746): CController->run("blogdetails") 1741 { 1742 list($controller,$actionID)=$ca; 1743 $oldController=$this->_controller; 1744 $this->_controller=$controller; 1745 $controller->init(); 1746 $controller->run($actionID); 1747 $this->_controller=$oldController; 1748 } 1749 else 1750 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 1751 array('{route}'=>$route===''?$this->defaultController:$route))); |
#15 |
+
–
/home/blogarama/new/framework/yiilite.php(1666): CWebApplication->runController("site/blogdetails") 1661 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 1662 $_GET[$name]=$value; 1663 } 1664 else 1665 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 1666 $this->runController($route); 1667 } 1668 protected function registerCoreComponents() 1669 { 1670 parent::registerCoreComponents(); 1671 $components=array( |
#16 |
+
–
/home/blogarama/new/framework/yiilite.php(1191): CWebApplication->processRequest() 1186 public function run() 1187 { 1188 if($this->hasEventHandler('onBeginRequest')) 1189 $this->onBeginRequest(new CEvent($this)); 1190 register_shutdown_function(array($this,'end'),0,false); 1191 $this->processRequest(); 1192 if($this->hasEventHandler('onEndRequest')) 1193 $this->onEndRequest(new CEvent($this)); 1194 } 1195 public function end($status=0,$exit=true) 1196 { |
#17 |
+
–
/home/blogarama/new/index.php(230): CApplication->run() 225 226 // print_r($_SERVER); 227 // print_r($_REQUEST); 228 229 // create a Web application instance and run 230 Yii::createWebApplication($config)->run(); 231 232 233 //print_r($_SESSION); 234 235 /* |