/home/mirash32/public_html/KRC/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 |
+
–
/home/mirash32/public_html/KRC/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 |
+
–
/home/mirash32/public_html/KRC/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 |
+
–
/home/mirash32/public_html/KRC/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 |
+
–
/home/mirash32/public_html/KRC/framework/base/CApplication.php(450): CModule->getComponent("db") 445 * Returns the database connection component. 446 * @return CDbConnection the database connection 447 */ 448 public function getDb() 449 { 450 return $this->getComponent('db'); 451 } 452 453 /** 454 * Returns the error handler component. 455 * @return CErrorHandler the error handler application component. |
#4 |
+
–
/home/mirash32/public_html/KRC/framework/db/ar/CActiveRecord.php(634): CApplication->getDb() 629 { 630 if(self::$db!==null) 631 return self::$db; 632 else 633 { 634 self::$db=Yii::app()->getDb(); 635 if(self::$db instanceof CDbConnection) 636 return self::$db; 637 else 638 throw new CDbException(Yii::t('yii','Active Record requires a "db" CDbConnection application component.')); 639 } |
#5 |
+
–
/home/mirash32/public_html/KRC/framework/db/ar/CActiveRecord.php(667): CActiveRecord->getDbConnection() 662 * Returns the command builder used by this AR. 663 * @return CDbCommandBuilder the command builder used by this AR 664 */ 665 public function getCommandBuilder() 666 { 667 return $this->getDbConnection()->getSchema()->getCommandBuilder(); 668 } 669 670 /** 671 * Checks whether this AR has the named attribute 672 * @param string $name attribute name |
#6 |
+
–
/home/mirash32/public_html/KRC/framework/db/ar/CActiveRecord.php(1469): CActiveRecord->getCommandBuilder() 1464 * @return CActiveRecord[] list of active records satisfying the specified condition. An empty array is returned if none is found. 1465 */ 1466 public function findAll($condition='',$params=array()) 1467 { 1468 Yii::trace(get_class($this).'.findAll()','system.db.ar.CActiveRecord'); 1469 $criteria=$this->getCommandBuilder()->createCriteria($condition,$params); 1470 return $this->query($criteria,true); 1471 } 1472 1473 /** 1474 * Finds a single active record with the specified primary key. |
#7 |
+
–
/home/mirash32/public_html/KRC/protected/views/front/site/gallery.php(13): CActiveRecord->findAll() 08 <h1 class="dec">Albums</h1> 09 <section class="gal-grid-main clearfix"> 10 11 12 <?php 13 $model = ImageGallery::model()->findAll(); 14 15 foreach ($model as $value ) { 16 if($value->isActive == "Y"){ ?> 17 18 <div class="col-sm-6 col-md-4 col-lg-3 gal-grid"> |
#8 |
+
–
/home/mirash32/public_html/KRC/framework/web/CBaseController.php(126): require("/home/mirash32/public_html/KRC/protected/views/front/site/galler...") 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 } |
#9 |
+
–
/home/mirash32/public_html/KRC/framework/web/CBaseController.php(95): CBaseController->renderInternal("/home/mirash32/public_html/KRC/protected/views/front/site/galler...", null, 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); |
#10 |
+
–
/home/mirash32/public_html/KRC/framework/web/CController.php(832): CBaseController->renderFile("/home/mirash32/public_html/KRC/protected/views/front/site/galler...", null, true) 827 * @see processOutput 828 * @see render 829 */ 830 public function renderPartial($view, $data = null, $return = false, $processOutput = false) { 831 if (($viewFile = $this->getViewFile($view)) !== false) { 832 $output = $this->renderFile($viewFile, $data, true); 833 if ($processOutput) 834 $output = $this->processOutput($output); 835 if ($return) 836 return $output; 837 else |
#11 |
+
–
/home/mirash32/public_html/KRC/framework/web/CController.php(749): CController->renderPartial("gallery", null, true) 744 * @see renderPartial 745 * @see getLayoutFile 746 */ 747 public function render($view, $data = null, $return = false) { 748 if ($this->beforeRender($view)) { 749 $output = $this->renderPartial($view, $data, true); 750 if (($layoutFile = $this->getLayoutFile($this->layout)) !== false) 751 $output = $this->renderFile($layoutFile, array('content' => $output), true); 752 753 $this->afterRender($view, $output); 754 |
#12 |
+
–
/home/mirash32/public_html/KRC/protected/controllers/front/SiteController.php(459): CController->render("gallery") 454 $this->render('gallerycateogry'); 455 456 } 457 public function actiongallery() { 458 459 $this->render('gallery'); 460 461 } 462 public function actiongalleryinner($id) { 463 $model=Images::model()->findAllByAttributes(array('gallery_id'=>$id),array('order'=>'id ASC')); 464 $this->render('galleryinner',array( |
#13 |
+
–
/home/mirash32/public_html/KRC/framework/web/actions/CInlineAction.php(49): SiteController->actiongallery() 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 else 49 return $controller->$methodName(); 50 } 51 52 } |
#14 |
+
–
/home/mirash32/public_html/KRC/framework/web/CController.php(295): CInlineAction->runWithParams(array()) 290 */ 291 public function runAction($action) { 292 $priorAction = $this->_action; 293 $this->_action = $action; 294 if ($this->beforeAction($action)) { 295 if ($action->runWithParams($this->getActionParams()) === false) 296 $this->invalidActionParams($action); 297 else 298 $this->afterAction($action); 299 } 300 $this->_action = $priorAction; |
#15 |
+
–
/home/mirash32/public_html/KRC/framework/web/CController.php(276): CController->runAction(CInlineAction) 271 * @see createAction 272 * @see runAction 273 */ 274 public function runActionWithFilters($action, $filters) { 275 if (empty($filters)) 276 $this->runAction($action); 277 else { 278 $priorAction = $this->_action; 279 $this->_action = $action; 280 CFilterChain::create($this, $action, $filters)->run(); 281 $this->_action = $priorAction; |
#16 |
+
–
/home/mirash32/public_html/KRC/framework/web/CController.php(256): CController->runActionWithFilters(CInlineAction, array()) 251 public function run($actionID) { 252 if (($action = $this->createAction($actionID)) !== null) { 253 if (($parent = $this->getModule()) === null) 254 $parent = Yii::app(); 255 if ($parent->beforeControllerAction($this, $action)) { 256 $this->runActionWithFilters($action, $this->filters()); 257 $parent->afterControllerAction($this, $action); 258 } 259 } 260 else 261 $this->missingAction($actionID); |
#17 |
+
–
/home/mirash32/public_html/KRC/framework/web/CWebApplication.php(282): CController->run("gallery") 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))); |
#18 |
+
–
/home/mirash32/public_html/KRC/framework/web/CWebApplication.php(141): CWebApplication->runController("site/gallery") 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. |
#19 |
+
–
/home/mirash32/public_html/KRC/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 /** |
#20 |
+
–
/home/mirash32/public_html/KRC/protected/components/WebApplicationEndBehavior.php(25): CApplication->run() 20 // Attach the changeModulePaths event handler 21 // and raise it. 22 $this->onModuleCreate = array($this, 'changeModulePaths'); 23 $this->onModuleCreate(new CEvent($this->owner)); 24 25 $this->owner->run(); // Run application. 26 } 27 28 // This event should be raised when CWebApplication 29 // or CWebModule instances are being initialized. 30 public function onModuleCreate($event) |
#21 |
+
–
/home/mirash32/public_html/KRC/framework/base/CComponent.php(261): WebApplicationEndBehavior->runEnd("front") 256 if($this->_m!==null) 257 { 258 foreach($this->_m as $object) 259 { 260 if($object->getEnabled() && method_exists($object,$name)) 261 return call_user_func_array(array($object,$name),$parameters); 262 } 263 } 264 if(class_exists('Closure', false) && $this->canGetProperty($name) && $this->$name instanceof Closure) 265 return call_user_func_array($this->$name, $parameters); 266 throw new CException(Yii::t('yii','{class} and its behaviors do not have a method or closure named "{name}".', |
#22 |
+
–
/home/mirash32/public_html/index.php(14): CComponent->__call("runEnd", array("front")) 09 defined('YII_DEBUG') or define('YII_DEBUG',true); 10 // specify how many levels of call stack should be shown in each log message 11 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 12 13 require_once($yii); 14 Yii::createWebApplication($config)->runEnd('front'); |