/home/edainikjugeralo/public_html/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 |
+
–
/home/edainikjugeralo/public_html/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 |
+
–
/home/edainikjugeralo/public_html/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 |
+
–
/home/edainikjugeralo/public_html/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 |
+
–
/home/edainikjugeralo/public_html/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 |
+
–
/home/edainikjugeralo/public_html/framework/db/ar/CActiveRecord.php(637): CApplication->getDb() 632 { 633 if(self::$db!==null) 634 return self::$db; 635 else 636 { 637 self::$db=Yii::app()->getDb(); 638 if(self::$db instanceof CDbConnection) 639 return self::$db; 640 else 641 throw new CDbException(Yii::t('yii','Active Record requires a "db" CDbConnection application component.')); 642 } |
#5 |
+
–
/home/edainikjugeralo/public_html/framework/db/ar/CActiveRecord.php(2386): CActiveRecord->getDbConnection() 2381 public function __construct($model) 2382 { 2383 $this->_modelClassName=get_class($model); 2384 2385 $tableName=$model->tableName(); 2386 if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null) 2387 throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.', 2388 array('{class}'=>$this->_modelClassName,'{table}'=>$tableName))); 2389 2390 if(($modelPk=$model->primaryKey())!==null || $table->primaryKey===null) 2391 { |
#6 |
+
–
/home/edainikjugeralo/public_html/framework/db/ar/CActiveRecord.php(411): CActiveRecordMetaData->__construct(User) 406 { 407 $className=get_class($this); 408 if(!array_key_exists($className,self::$_md)) 409 { 410 self::$_md[$className]=null; // preventing recursive invokes of {@link getMetaData()} via {@link __get()} 411 self::$_md[$className]=new CActiveRecordMetaData($this); 412 } 413 return self::$_md[$className]; 414 } 415 416 /** |
#7 |
+
–
/home/edainikjugeralo/public_html/framework/db/ar/CActiveRecord.php(79): CActiveRecord->getMetaData() 74 if($scenario===null) // internally used by populateRecord() and model() 75 return; 76 77 $this->setScenario($scenario); 78 $this->setIsNewRecord(true); 79 $this->_attributes=$this->getMetaData()->attributeDefaults; 80 81 $this->init(); 82 83 $this->attachBehaviors($this->behaviors()); 84 $this->afterConstruct(); |
#8 |
+
–
/home/edainikjugeralo/public_html/protected/components/AdminMenu.php(112): CActiveRecord->__construct() 107 private function _getIdentity(){ 108 $identity = Yii::app()->user->getState("identity"); 109 if(!is_null($identity)){ 110 return $identity; 111 } 112 return new User(); 113 } 114 /** 115 * Renders the menu 116 */ 117 public function render() { |
#9 |
+
–
/home/edainikjugeralo/public_html/protected/components/AdminMenu.php(30): AdminMenu->_getIdentity() 25 * @param integer $id Menuitem Id 26 * @param string $title Title of Link 27 * @param string $url Url of Link 28 */ 29 public function addMenuItem($id, $title, $url, $task_id="") { 30 $current_user_role = $this->_getIdentity()->user_role; 31 if($current_user_role=="admin"){ 32 $this->_topMenuItems[$id] = array("title" => $title, "url" => $url); 33 return; 34 } 35 |
#10 |
+
–
/home/edainikjugeralo/public_html/protected/modules/epaper/EpaperLoader.php(40): AdminMenu->addMenuItem("epaper", "Epaper", "#", array("ep_manage_categories", "ep_manage_editions", "ep_manage_scheduler", "ep_generate_sitemap")) 35 TaskComponent::i()->addTask("Epaper",$tasks[0],"Manage Categories"); 36 TaskComponent::i()->addTask("Epaper",$tasks[1],"Manage Editions"); 37 TaskComponent::i()->addTask("Epaper",$tasks[2],"Manage Scheduler"); 38 TaskComponent::i()->addTask("Epaper",$tasks[3],"Generate Sitemap"); 39 40 AdminMenu::i()->addMenuItem("epaper","Epaper","#",$tasks); 41 AdminMenu::i()->addSubMenuItem("epaper","categories","Categories",Yii::app()->createUrl("//epaper/admin/category/index"),$tasks[0]); 42 AdminMenu::i()->addSubMenuItem("epaper","featured-categories","Featured Categories",Yii::app()->createUrl("//epaper/admin/category/featured"),$tasks[0]); 43 AdminMenu::i()->addSubMenuItem("epaper","editions","Editions",Yii::app()->createUrl("//epaper/admin/edition/index"),$tasks[1]); 44 AdminMenu::i()->addSubMenuItem("epaper","featured-editions","Featured Editions",Yii::app()->createUrl("//epaper/admin/edition/featured"),$tasks[1]); 45 AdminMenu::i()->addSubMenuItem("epaper","scheduler","Scheduler",Yii::app()->createUrl("//epaper/admin/scheduler/index"),$tasks[2]); |
#11 |
+
–
/home/edainikjugeralo/public_html/protected/components/ModuleLoader.php(90): EpaperLoader::init() 85 86 //Load this configuration data 87 self::$_config[$module_name] = $loaderClass::getConfig(); 88 89 //Run init method 90 $loaderClass::init(); 91 92 //Loading Url Rewriting Rules 93 $urlmanager = Yii::app()->getUrlManager(); 94 $routing = $loaderClass::getUrlRewritingRules(); 95 if($routing["mode"]=="prepend"){ |
#12 |
+
–
/home/edainikjugeralo/public_html/framework/base/CComponent.php(559): ModuleLoader::loadModules(CEvent) 554 if(is_array($handler)) 555 { 556 // an array: 0 - object, 1 - method name 557 list($object,$method)=$handler; 558 if(is_string($object)) // static method call 559 call_user_func($handler,$event); 560 elseif(method_exists($object,$method)) 561 $object->$method($event); 562 else 563 throw new CException(Yii::t('yii','Event "{class}.{event}" is attached with an invalid handler "{handler}".', 564 array('{class}'=>get_class($this), '{event}'=>$name, '{handler}'=>$handler[1]))); |
#13 |
+
–
/home/edainikjugeralo/public_html/framework/base/CApplication.php(212): CComponent->raiseEvent("onbeginrequest", CEvent) 207 * Raised right BEFORE the application processes the request. 208 * @param CEvent $event the event parameter 209 */ 210 public function onBeginRequest($event) 211 { 212 $this->raiseEvent('onBeginRequest',$event); 213 } 214 215 /** 216 * Raised right AFTER the application processes the request. 217 * @param CEvent $event the event parameter |
#14 |
+
–
/home/edainikjugeralo/public_html/framework/base/CApplication.php(183): CApplication->onBeginRequest(CEvent) 178 * Remember to call the parent implementation so that static application components are loaded. 179 */ 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 } |
#15 |
+
–
/home/edainikjugeralo/public_html/index.php(24): CApplication->run() 19 defined('YII_DEBUG') or define('YII_DEBUG',true); 20 // specify how many levels of call stack should be shown in each log message 21 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 22 23 require_once($yii); 24 Yii::createWebApplication($config)->run(); 25 |