/var/www/vhosts/musingmonkeys.com/khity-san.com/yii/framework/db/CDbConnection.php(399)
387 throw new CDbException('CDbConnection.connectionString cannot be empty.'); 388 try 389 { 390 Yii::trace('Opening DB connection','system.db.CDbConnection'); 391 $this->_pdo=$this->createPdoInstance(); 392 $this->initConnection($this->_pdo); 393 $this->_active=true; 394 } 395 catch(PDOException $e) 396 { 397 if(YII_DEBUG) 398 { 399 throw new CDbException('CDbConnection failed to open the DB connection: '. 400 $e->getMessage(),(int)$e->getCode(),$e->errorInfo); 401 } 402 else 403 { 404 Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException'); 405 throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo); 406 } 407 } 408 } 409 } 410 411 /**
#0 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/yii/framework/db/CDbConnection.php(347): CDbConnection->open() 342 public function setActive($value) 343 { 344 if($value!=$this->_active) 345 { 346 if($value) 347 $this->open(); 348 else 349 $this->close(); 350 } 351 } 352 |
#1 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/yii/framework/db/CDbConnection.php(325): CDbConnection->setActive(true) 320 */ 321 public function init() 322 { 323 parent::init(); 324 if($this->autoConnect) 325 $this->setActive(true); 326 } 327 328 /** 329 * Returns whether the DB connection is established. 330 * @return boolean whether the DB connection is established |
#2 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/yii/framework/base/CModule.php(394): CDbConnection->init() 389 if(!isset($config['enabled']) || $config['enabled']) 390 { 391 Yii::trace("Loading \"$id\" application component",'system.CModule'); 392 unset($config['enabled']); 393 $component=Yii::createComponent($config); 394 $component->init(); 395 return $this->_components[$id]=$component; 396 } 397 } 398 } 399 |
#3 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/yii/framework/base/CApplication.php(459): CModule->getComponent("db") 454 * Returns the database connection component. 455 * @return CDbConnection the database connection 456 */ 457 public function getDb() 458 { 459 return $this->getComponent('db'); 460 } 461 462 /** 463 * Returns the error handler component. 464 * @return CErrorHandler the error handler application component. |
#4 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/yii/framework/db/ar/CActiveRecord.php(639): CApplication->getDb() 634 { 635 if(self::$db!==null) 636 return self::$db; 637 else 638 { 639 self::$db=Yii::app()->getDb(); 640 if(self::$db instanceof CDbConnection) 641 return self::$db; 642 else 643 throw new CDbException(Yii::t('yii','Active Record requires a "db" CDbConnection application component.')); 644 } |
#5 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/yii/framework/db/ar/CActiveRecord.php(672): CActiveRecord->getDbConnection() 667 * Returns the command builder used by this AR. 668 * @return CDbCommandBuilder the command builder used by this AR 669 */ 670 public function getCommandBuilder() 671 { 672 return $this->getDbConnection()->getSchema()->getCommandBuilder(); 673 } 674 675 /** 676 * Checks whether this AR has the named attribute 677 * @param string $name attribute name |
#6 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/yii/framework/db/ar/CActiveRecord.php(1604): CActiveRecord->getCommandBuilder() 1599 */ 1600 public function count($condition='',$params=array()) 1601 { 1602 Yii::trace(get_class($this).'.count()','system.db.ar.CActiveRecord'); 1603 $this->beforeCount(); 1604 $builder=$this->getCommandBuilder(); 1605 $criteria=$builder->createCriteria($condition,$params); 1606 $this->applyScopes($criteria); 1607 1608 if(empty($criteria->with)) 1609 return $builder->createCountCommand($this->getTableSchema(),$criteria)->queryScalar(); |
#7 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/yii/framework/web/CActiveDataProvider.php(228): CActiveRecord->count(CDbCriteria) 223 protected function calculateTotalItemCount() 224 { 225 $baseCriteria=$this->model->getDbCriteria(false); 226 if($baseCriteria!==null) 227 $baseCriteria=clone $baseCriteria; 228 $count=$this->model->count($this->getCountCriteria()); 229 $this->model->setDbCriteria($baseCriteria); 230 return $count; 231 } 232 } |
#8 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/yii/framework/web/CDataProvider.php(224): CActiveDataProvider->calculateTotalItemCount() 219 * @return integer total number of possible data items. 220 */ 221 public function getTotalItemCount($refresh=false) 222 { 223 if($this->_totalItemCount===null || $refresh) 224 $this->_totalItemCount=$this->calculateTotalItemCount(); 225 return $this->_totalItemCount; 226 } 227 228 /** 229 * Sets the total number of data items. |
#9 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/yii/framework/web/CActiveDataProvider.php(178): CDataProvider->getTotalItemCount() 173 { 174 $criteria=clone $this->getCriteria(); 175 176 if(($pagination=$this->getPagination())!==false) 177 { 178 $pagination->setItemCount($this->getTotalItemCount()); 179 $pagination->applyLimit($criteria); 180 } 181 182 $baseCriteria=$this->model->getDbCriteria(false); 183 |
#10 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/yii/framework/web/CDataProvider.php(168): CActiveDataProvider->fetchData() 163 * @return array the list of data items currently available in this data provider. 164 */ 165 public function getData($refresh=false) 166 { 167 if($this->_data===null || $refresh) 168 $this->_data=$this->fetchData(); 169 return $this->_data; 170 } 171 172 /** 173 * Sets the data items for this provider. |
#11 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/yii/framework/zii/widgets/CBaseListView.php(125): CDataProvider->getData() 120 public function init() 121 { 122 if($this->dataProvider===null) 123 throw new CException(Yii::t('zii','The "dataProvider" property cannot be empty.')); 124 125 $this->dataProvider->getData(); 126 127 if(isset($this->htmlOptions['id'])) 128 $this->id=$this->htmlOptions['id']; 129 else 130 $this->htmlOptions['id']=$this->id; |
#12 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/yii/framework/zii/widgets/CListView.php(211): CBaseListView->init() 206 */ 207 public function init() 208 { 209 if($this->itemView===null) 210 throw new CException(Yii::t('zii','The property "itemView" cannot be empty.')); 211 parent::init(); 212 213 if(!isset($this->htmlOptions['class'])) 214 $this->htmlOptions['class']='list-view'; 215 216 if($this->baseScriptUrl===null) |
#13 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/yii/framework/web/CBaseController.php(147): CListView->init() 142 * @return CWidget the fully initialized widget instance. 143 */ 144 public function createWidget($className,$properties=array()) 145 { 146 $widget=Yii::app()->getWidgetFactory()->createWidget($this,$className,$properties); 147 $widget->init(); 148 return $widget; 149 } 150 151 /** 152 * Creates a widget and executes it. |
#14 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/yii/framework/web/CBaseController.php(181): CBaseController->createWidget("zii.widgets.CListView", array("dataProvider" => CActiveDataProvider, "itemView" => "_view", "summaryText" => "Messages {start} to {end} of {count}", "emptyText" => "No messages")) 176 } 177 return ob_get_clean(); 178 } 179 else 180 { 181 $widget=$this->createWidget($className,$properties); 182 $widget->run(); 183 return $widget; 184 } 185 } 186 |
#15 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/protected/views/livreDOr/en/index.php(22): CBaseController->widget("zii.widgets.CListView", array("dataProvider" => CActiveDataProvider, "itemView" => "_view", "summaryText" => "Messages {start} to {end} of {count}", "emptyText" => "No messages")) 17 <span class="clearfix"></span> 18 <?php $this->widget('zii.widgets.CListView', array( 19 'dataProvider'=>$dataProvider, 20 'itemView'=>'_view', 21 'summaryText'=>'Messages {start} to {end} of {count}', 22 'emptyText'=>'No messages' 23 )); ?> |
#16 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/yii/framework/web/CBaseController.php(126): require("/var/www/vhosts/musingmonkeys.com/khity-san.com/protected/views/...") 121 $data=$_data_; 122 if($_return_) 123 { 124 ob_start(); 125 ob_implicit_flush(false); 126 require($_viewFile_); 127 return ob_get_clean(); 128 } 129 else 130 require($_viewFile_); 131 } |
#17 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/yii/framework/web/CBaseController.php(95): CBaseController->renderInternal("/var/www/vhosts/musingmonkeys.com/khity-san.com/protected/views/...", array("dataProvider" => CActiveDataProvider), true) 090 { 091 $widgetCount=count($this->_widgetStack); 092 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 093 $content=$renderer->renderFile($this,$viewFile,$data,$return); 094 else 095 $content=$this->renderInternal($viewFile,$data,$return); 096 if(count($this->_widgetStack)===$widgetCount) 097 return $content; 098 else 099 { 100 $widget=end($this->_widgetStack); |
#18 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/yii/framework/web/CController.php(872): CBaseController->renderFile("/var/www/vhosts/musingmonkeys.com/khity-san.com/protected/views/...", array("dataProvider" => CActiveDataProvider), true) 867 */ 868 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 869 { 870 if(($viewFile=$this->getViewFile($view))!==false) 871 { 872 $output=$this->renderFile($viewFile,$data,true); 873 if($processOutput) 874 $output=$this->processOutput($output); 875 if($return) 876 return $output; 877 else |
#19 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/yii/framework/web/CController.php(785): CController->renderPartial("index", array("dataProvider" => CActiveDataProvider), true) 780 */ 781 public function render($view,$data=null,$return=false) 782 { 783 if($this->beforeRender($view)) 784 { 785 $output=$this->renderPartial($view,$data,true); 786 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 787 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 788 789 $this->afterRender($view,$output); 790 |
#20 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/protected/controllers/LivreDOrController.php(131): CController->render("index", array("dataProvider" => CActiveDataProvider)) 126 */ 127 public function actionIndex() 128 { 129 $dataProvider=new CActiveDataProvider('LivreDOr', array('criteria'=>array('order'=>'datetime DESC'))); 130 $this->render('index',array( 131 'dataProvider'=>$dataProvider, 132 )); 133 } 134 135 /** 136 * Manages all models. |
#21 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/yii/framework/web/actions/CInlineAction.php(49): LivreDOrController->actionIndex() 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 49 $controller->$methodName(); 50 return true; 51 } 52 } |
#22 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/yii/framework/web/CController.php(308): CInlineAction->runWithParams(array("language" => "en")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#23 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/yii/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 } |
#24 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/yii/framework/web/filters/CFilter.php(40): CFilterChain->run() 35 */ 36 public function filter($filterChain) 37 { 38 if($this->preFilter($filterChain)) 39 { 40 $filterChain->run(); 41 $this->postFilter($filterChain); 42 } 43 } 44 45 /** |
#25 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/yii/framework/web/CController.php(1148): CFilter->filter(CFilterChain) 1143 */ 1144 public function filterAccessControl($filterChain) 1145 { 1146 $filter=new CAccessControlFilter; 1147 $filter->setRules($this->accessRules()); 1148 $filter->filter($filterChain); 1149 } 1150 1151 /** 1152 * Returns a persistent page state value. 1153 * A page state is a variable that is persistent across POST requests of the same page. |
#26 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/yii/framework/web/filters/CInlineFilter.php(58): CController->filterAccessControl(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 } |
#27 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/yii/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 } |
#28 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/yii/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 /** |
#29 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/yii/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array("accessControl", "postOnly + delete")) 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); |
#30 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/yii/framework/web/CWebApplication.php(282): CController->run("") 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))); |
#31 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("livreDOr") 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. |
#32 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/yii/framework/base/CApplication.php(185): CWebApplication->processRequest() 180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } 189 190 /** |
#33 |
+
–
/var/www/vhosts/musingmonkeys.com/khity-san.com/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(); |