/home/admleg/public_html/yii/framework/db/CDbConnection.php(382)
370 throw new CDbException(Yii::t('yii','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(Yii::t('yii','CDbConnection failed to open the DB connection: {error}', 383 array('{error}'=>$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(Yii::t('yii','CDbConnection failed to open the DB connection.'),(int)$e->getCode(),$e->errorInfo); 389 } 390 } 391 } 392 } 393 394 /**
#0 |
+
–
/home/admleg/public_html/yii/framework/db/CDbConnection.php(331): CDbConnection->open() 326 public function setActive($value) 327 { 328 if($value!=$this->_active) 329 { 330 if($value) 331 $this->open(); 332 else 333 $this->close(); 334 } 335 } 336 |
#1 |
+
–
/home/admleg/public_html/yii/framework/db/CDbConnection.php(309): CDbConnection->setActive(true) 304 */ 305 public function init() 306 { 307 parent::init(); 308 if($this->autoConnect) 309 $this->setActive(true); 310 } 311 312 /** 313 * Returns whether the DB connection is established. 314 * @return boolean whether the DB connection is established |
#2 |
+
–
/home/admleg/public_html/yii/framework/base/CModule.php(388): CDbConnection->init() 383 if(!isset($config['enabled']) || $config['enabled']) 384 { 385 Yii::trace("Loading \"$id\" application component",'system.CModule'); 386 unset($config['enabled']); 387 $component=Yii::createComponent($config); 388 $component->init(); 389 return $this->_components[$id]=$component; 390 } 391 } 392 } 393 |
#3 |
+
–
/home/admleg/public_html/yii/framework/web/auth/CDbAuthManager.php(586): CModule->getComponent("db") 581 */ 582 protected function getDbConnection() 583 { 584 if($this->db!==null) 585 return $this->db; 586 else if(($this->db=Yii::app()->getComponent($this->connectionID)) instanceof CDbConnection) 587 return $this->db; 588 else 589 throw new CException(Yii::t('yii','CDbAuthManager.connectionID "{id}" is invalid. Please make sure it refers to the ID of a CDbConnection application component.', 590 array('{id}'=>$this->connectionID))); 591 } |
#4 |
+
–
/home/admleg/public_html/yii/framework/web/auth/CDbAuthManager.php(60): CDbAuthManager->getDbConnection() 55 * This method overrides the parent implementation by establishing the database connection. 56 */ 57 public function init() 58 { 59 parent::init(); 60 $this->_usingSqlite=!strncmp($this->getDbConnection()->getDriverName(),'sqlite',6); 61 } 62 63 /** 64 * Performs access check for the specified user. 65 * @param string $itemName the name of the operation that need access check |
#5 |
+
–
/home/admleg/public_html/yii/framework/base/CModule.php(388): CDbAuthManager->init() 383 if(!isset($config['enabled']) || $config['enabled']) 384 { 385 Yii::trace("Loading \"$id\" application component",'system.CModule'); 386 unset($config['enabled']); 387 $component=Yii::createComponent($config); 388 $component->init(); 389 return $this->_components[$id]=$component; 390 } 391 } 392 } 393 |
#6 |
+
–
/home/admleg/public_html/yii/framework/web/CWebApplication.php(179): CModule->getComponent("authManager") 174 /** 175 * @return IAuthManager the authorization manager component 176 */ 177 public function getAuthManager() 178 { 179 return $this->getComponent('authManager'); 180 } 181 182 /** 183 * @return CAssetManager the asset manager component 184 */ |
#7 |
+
–
/home/admleg/public_html/yii/framework/web/auth/CWebUser.php(794): CWebApplication->getAuthManager() 789 public function checkAccess($operation,$params=array(),$allowCaching=true) 790 { 791 if($allowCaching && $params===array() && isset($this->_access[$operation])) 792 return $this->_access[$operation]; 793 else 794 return $this->_access[$operation]=Yii::app()->getAuthManager()->checkAccess($operation,$this->getId(),$params); 795 } 796 } |
#8 |
+
–
/home/admleg/public_html/l8/protected/modules/rights/components/RWebUser.php(43): CWebUser->checkAccess("Employee", 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 |
+
–
/home/admleg/public_html/l8/protected/views/layouts/main.php(45): RWebUser->checkAccess("Employee") 40 'items'=>array( 41 array('label'=>'Home', 'url'=>array('/post/index'), 'visible'=>Yii::app()->user->isGuest), 42 array('label'=>'About', 'url'=>array('/site/page', 'view'=>'about'), 'visible'=>Yii::app()->user->isGuest), 43 array('label'=>'Contact', 'url'=>array('/site/contact'), 'visible'=>Yii::app()->user->isGuest), 44 array('label'=>'Carrer', 'url'=>array('/karir/karir/lowongan'), 'visible'=>Yii::app()->user->isGuest), 45 array('label'=>'Administrator', 'url'=>array('/pegawai/pegawai/admin'), 'visible'=>Yii::app()->user->checkAccess('Employee')), 46 47 array('label'=>'Carrer', 'url'=>array('/karir/karir/create'), 'visible'=>Yii::app()->user->checkAccess('Authenticated')), 48 //array('label'=>'Rights', 'url'=>array('/rights')), 49 //array('label'=>'Gii', 'url'=>array('/gii')), 50 array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest), |
#10 |
+
–
/home/admleg/public_html/yii/framework/web/CBaseController.php(127): require("/home/admleg/public_html/l8/protected/views/layouts/main.php") 122 $data=$_data_; 123 if($_return_) 124 { 125 ob_start(); 126 ob_implicit_flush(false); 127 require($_viewFile_); 128 return ob_get_clean(); 129 } 130 else 131 require($_viewFile_); 132 } |
#11 |
+
–
/home/admleg/public_html/yii/framework/web/CBaseController.php(96): CBaseController->renderInternal("/home/admleg/public_html/l8/protected/views/layouts/main.php", array("content" => "
<div class="container">
<h1>Contact Us</h1>
<div class="spa..."), true) 091 { 092 $widgetCount=count($this->_widgetStack); 093 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 094 $content=$renderer->renderFile($this,$viewFile,$data,$return); 095 else 096 $content=$this->renderInternal($viewFile,$data,$return); 097 if(count($this->_widgetStack)===$widgetCount) 098 return $content; 099 else 100 { 101 $widget=end($this->_widgetStack); |
#12 |
+
–
/home/admleg/public_html/yii/framework/web/widgets/CContentDecorator.php(77): CBaseController->renderFile("/home/admleg/public_html/l8/protected/views/layouts/main.php", array("content" => "
<div class="container">
<h1>Contact Us</h1>
<div class="spa..."), true) 72 $viewFile=$owner->getViewFile($this->view); 73 if($viewFile!==false) 74 { 75 $data=$this->data; 76 $data['content']=$content; 77 return $owner->renderFile($viewFile,$data,true); 78 } 79 else 80 return $content; 81 } 82 } |
#13 |
+
–
/home/admleg/public_html/yii/framework/web/widgets/CContentDecorator.php(55): CContentDecorator->decorate("
<div class="container">
<h1>Contact Us</h1>
<div class="spa...") 50 * This method decorates the output with the specified {@link view}. 51 * @param string $output the captured output to be processed 52 */ 53 public function processOutput($output) 54 { 55 $output=$this->decorate($output); 56 parent::processOutput($output); 57 } 58 59 /** 60 * Decorates the content by rendering a view and embedding the content in it. |
#14 |
+
–
/home/admleg/public_html/yii/framework/web/widgets/COutputProcessor.php(45): CContentDecorator->processOutput("
<div class="container">
<h1>Contact Us</h1>
<div class="spa...") 40 * This method stops output buffering and processes the captured output. 41 */ 42 public function run() 43 { 44 $output=ob_get_clean(); 45 $this->processOutput($output); 46 } 47 48 /** 49 * Processes the captured output. 50 * |
#15 |
+
–
/home/admleg/public_html/yii/framework/web/CBaseController.php(207): COutputProcessor->run() 202 */ 203 public function endWidget($id='') 204 { 205 if(($widget=array_pop($this->_widgetStack))!==null) 206 { 207 $widget->run(); 208 return $widget; 209 } 210 else 211 throw new CException(Yii::t('yii','{controller} has an extra endWidget({id}) call in its view.', 212 array('{controller}'=>get_class($this),'{id}'=>$id))); |
#16 |
+
–
/home/admleg/public_html/yii/framework/web/CBaseController.php(301): CBaseController->endWidget("CContentDecorator") 296 * Ends the rendering of content. 297 * @see beginContent 298 */ 299 public function endContent() 300 { 301 $this->endWidget('CContentDecorator'); 302 } 303 } |
#17 |
+
–
/home/admleg/public_html/l8/protected/views/layouts/column1.php(5): CBaseController->endContent() 1 <?php $this->beginContent('application.views.layouts.main'); ?> 2 3 <?php echo $content; ?> 4 5 <?php $this->endContent(); ?> |
#18 |
+
–
/home/admleg/public_html/yii/framework/web/CBaseController.php(127): require("/home/admleg/public_html/l8/protected/views/layouts/column1.php") 122 $data=$_data_; 123 if($_return_) 124 { 125 ob_start(); 126 ob_implicit_flush(false); 127 require($_viewFile_); 128 return ob_get_clean(); 129 } 130 else 131 require($_viewFile_); 132 } |
#19 |
+
–
/home/admleg/public_html/yii/framework/web/CBaseController.php(96): CBaseController->renderInternal("/home/admleg/public_html/l8/protected/views/layouts/column1.php", array("content" => "<div class="container">
<h1>Contact Us</h1>
<div class="span-1..."), true) 091 { 092 $widgetCount=count($this->_widgetStack); 093 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 094 $content=$renderer->renderFile($this,$viewFile,$data,$return); 095 else 096 $content=$this->renderInternal($viewFile,$data,$return); 097 if(count($this->_widgetStack)===$widgetCount) 098 return $content; 099 else 100 { 101 $widget=end($this->_widgetStack); |
#20 |
+
–
/home/admleg/public_html/yii/framework/web/CController.php(785): CBaseController->renderFile("/home/admleg/public_html/l8/protected/views/layouts/column1.php", array("content" => "<div class="container">
<h1>Contact Us</h1>
<div class="span-1..."), true) 780 { 781 if($this->beforeRender($view)) 782 { 783 $output=$this->renderPartial($view,$data,true); 784 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 785 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 786 787 $this->afterRender($view,$output); 788 789 $output=$this->processOutput($output); 790 |
#21 |
+
–
/home/admleg/public_html/l8/protected/controllers/SiteController.php(115): CController->render("contact", array("model" => ContactForm)) 110 mail(Yii::app()->params['adminEmail'],$model->subject,$model->body,$headers); 111 Yii::app()->user->setFlash('contact','Thank you for contacting us. We will respond to you as soon as possible.'); 112 $this->refresh(); 113 } 114 } 115 $this->render('contact',array('model'=>$model)); 116 } 117 118 /** 119 * Displays the login page 120 */ |
#22 |
+
–
/home/admleg/public_html/yii/framework/web/actions/CInlineAction.php(50): SiteController->actionContact() 45 $controller=$this->getController(); 46 $method=new ReflectionMethod($controller, $methodName); 47 if($method->getNumberOfParameters()>0) 48 return $this->runWithParamsInternal($controller, $method, $params); 49 else 50 return $controller->$methodName(); 51 } 52 53 } |
#23 |
+
–
/home/admleg/public_html/yii/framework/web/CController.php(309): CInlineAction->runWithParams(array()) 304 { 305 $priorAction=$this->_action; 306 $this->_action=$action; 307 if($this->beforeAction($action)) 308 { 309 if($action->runWithParams($this->getActionParams())===false) 310 $this->invalidActionParams($action); 311 else 312 $this->afterAction($action); 313 } 314 $this->_action=$priorAction; |
#24 |
+
–
/home/admleg/public_html/yii/framework/web/CController.php(287): CController->runAction(CInlineAction) 282 * @see runAction 283 */ 284 public function runActionWithFilters($action,$filters) 285 { 286 if(empty($filters)) 287 $this->runAction($action); 288 else 289 { 290 $priorAction=$this->_action; 291 $this->_action=$action; 292 CFilterChain::create($this,$action,$filters)->run(); |
#25 |
+
–
/home/admleg/public_html/yii/framework/web/CController.php(266): CController->runActionWithFilters(CInlineAction, array()) 261 { 262 if(($parent=$this->getModule())===null) 263 $parent=Yii::app(); 264 if($parent->beforeControllerAction($this,$action)) 265 { 266 $this->runActionWithFilters($action,$this->filters()); 267 $parent->afterControllerAction($this,$action); 268 } 269 } 270 else 271 $this->missingAction($actionID); |
#26 |
+
–
/home/admleg/public_html/yii/framework/web/CWebApplication.php(276): CController->run("contact") 271 { 272 list($controller,$actionID)=$ca; 273 $oldController=$this->_controller; 274 $this->_controller=$controller; 275 $controller->init(); 276 $controller->run($actionID); 277 $this->_controller=$oldController; 278 } 279 else 280 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 281 array('{route}'=>$route===''?$this->defaultController:$route))); |
#27 |
+
–
/home/admleg/public_html/yii/framework/web/CWebApplication.php(135): CWebApplication->runController("site/contact") 130 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 131 $_GET[$name]=$value; 132 } 133 else 134 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 135 $this->runController($route); 136 } 137 138 /** 139 * Registers the core application components. 140 * This method overrides the parent implementation by registering additional core components. |
#28 |
+
–
/home/admleg/public_html/yii/framework/base/CApplication.php(162): CWebApplication->processRequest() 157 */ 158 public function run() 159 { 160 if($this->hasEventHandler('onBeginRequest')) 161 $this->onBeginRequest(new CEvent($this)); 162 $this->processRequest(); 163 if($this->hasEventHandler('onEndRequest')) 164 $this->onEndRequest(new CEvent($this)); 165 } 166 167 /** |
#29 |
+
–
/home/admleg/public_html/l8/index.php(11): CApplication->run() 06 07 // remove the following line when in production mode 08 defined('YII_DEBUG') or define('YII_DEBUG',true); 09 10 require_once($yii); 11 Yii::createWebApplication($config)->run(); |