/home/radkow/ftp/framework18/db/CDbConnection.php(364)
352 throw new CDbException(Yii::t('yii','CDbConnection.connectionString cannot be empty.')); 353 try 354 { 355 Yii::trace('Opening DB connection','system.db.CDbConnection'); 356 $this->_pdo=$this->createPdoInstance(); 357 $this->initConnection($this->_pdo); 358 $this->_active=true; 359 } 360 catch(PDOException $e) 361 { 362 if(YII_DEBUG) 363 { 364 throw new CDbException(Yii::t('yii','CDbConnection failed to open the DB connection: {error}', 365 array('{error}'=>$e->getMessage())),(int)$e->getCode(),$e->errorInfo); 366 } 367 else 368 { 369 Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException'); 370 throw new CDbException(Yii::t('yii','CDbConnection failed to open the DB connection.'),(int)$e->getCode(),$e->errorInfo); 371 } 372 } 373 } 374 } 375 376 /**
#0 |
+
–
/home/radkow/ftp/framework18/db/CDbConnection.php(313): CDbConnection->open() 308 public function setActive($value) 309 { 310 if($value!=$this->_active) 311 { 312 if($value) 313 $this->open(); 314 else 315 $this->close(); 316 } 317 } 318 |
#1 |
+
–
/home/radkow/ftp/framework18/db/CDbConnection.php(291): CDbConnection->setActive(true) 286 */ 287 public function init() 288 { 289 parent::init(); 290 if($this->autoConnect) 291 $this->setActive(true); 292 } 293 294 /** 295 * Returns whether the DB connection is established. 296 * @return boolean whether the DB connection is established |
#2 |
+
–
/home/radkow/ftp/framework18/base/CModule.php(372): CDbConnection->init() 367 if(!isset($config['enabled']) || $config['enabled']) 368 { 369 Yii::trace("Loading \"$id\" application component",'system.CModule'); 370 unset($config['enabled']); 371 $component=Yii::createComponent($config); 372 $component->init(); 373 return $this->_components[$id]=$component; 374 } 375 } 376 } 377 |
#3 |
+
–
/home/radkow/ftp/framework18/base/CApplication.php(429): CModule->getComponent("db") 424 * Returns the database connection component. 425 * @return CDbConnection the database connection 426 */ 427 public function getDb() 428 { 429 return $this->getComponent('db'); 430 } 431 432 /** 433 * Returns the error handler component. 434 * @return CErrorHandler the error handler application component. |
#4 |
+
–
/home/radkow/ftp/framework18/db/ar/CActiveRecord.php(609): CApplication->getDb() 604 { 605 if(self::$db!==null) 606 return self::$db; 607 else 608 { 609 self::$db=Yii::app()->getDb(); 610 if(self::$db instanceof CDbConnection) 611 return self::$db; 612 else 613 throw new CDbException(Yii::t('yii','Active Record requires a "db" CDbConnection application component.')); 614 } |
#5 |
+
–
/home/radkow/ftp/framework18/db/ar/CActiveRecord.php(2275): CActiveRecord->getDbConnection() 2270 public function __construct($model) 2271 { 2272 $this->_model=$model; 2273 2274 $tableName=$model->tableName(); 2275 if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null) 2276 throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.', 2277 array('{class}'=>get_class($model),'{table}'=>$tableName))); 2278 if($table->primaryKey===null) 2279 { 2280 $table->primaryKey=$model->primaryKey(); |
#6 |
+
–
/home/radkow/ftp/framework18/db/ar/CActiveRecord.php(372): CActiveRecordMetaData->__construct(Settings) 367 if(isset(self::$_models[$className])) 368 return self::$_models[$className]; 369 else 370 { 371 $model=self::$_models[$className]=new $className(null); 372 $model->_md=new CActiveRecordMetaData($model); 373 $model->attachBehaviors($model->behaviors()); 374 return $model; 375 } 376 } 377 |
#7 |
+
–
/home/radkow/ftp/protected/extensions/giix-components/GxActiveRecord.php(27): CActiveRecord::model("Settings") 22 * composite pk table. Usually a character. 23 */ 24 public static $pkSeparator = '-'; 25 26 public static function model($className=__CLASS__) { 27 return parent::model($className); 28 } 29 30 /** 31 * This method should be overridden to declare related pivot models for each MANY_MANY relationship. 32 * The pivot model is used by {@link saveWithRelated}. |
#8 |
+
–
/home/radkow/ftp/protected/models/_base/BaseSettings.php(24): GxActiveRecord::model("Settings") 19 * 20 */ 21 abstract class BaseSettings extends GxActiveRecord { 22 23 public static function model($className=__CLASS__) { 24 return parent::model($className); 25 } 26 27 public function tableName() { 28 return 'settings'; 29 } |
#9 |
+
–
/home/radkow/ftp/protected/models/Settings.php(8): BaseSettings::model("Settings") 03 Yii::import('application.models._base.BaseSettings'); 04 05 class Settings extends BaseSettings 06 { 07 public static function model($className=__CLASS__) { 08 return parent::model($className); 09 } 10 } |
#10 |
+
–
/home/radkow/ftp/protected/views/layouts/main.php(7): Settings::model() 02 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 03 <head> 04 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 05 <meta name="language" content="pl" /> 06 <title><?php echo CHtml::encode($this->pageTitle); ?></title> 07 <meta name="Description" content="<?php echo Settings::model()->find()->Description; ?>" /> 08 <meta name="Keywords" content="<?php echo Settings::model()->find()->Keywords; ?>" /> 09 10 11 <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" /> 12 <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" /> |
#11 |
+
–
/home/radkow/ftp/framework18/web/CBaseController.php(119): require("/home/radkow/ftp/protected/views/layouts/main.php") 114 $data=$_data_; 115 if($_return_) 116 { 117 ob_start(); 118 ob_implicit_flush(false); 119 require($_viewFile_); 120 return ob_get_clean(); 121 } 122 else 123 require($_viewFile_); 124 } |
#12 |
+
–
/home/radkow/ftp/framework18/web/CBaseController.php(88): CBaseController->renderInternal("/home/radkow/ftp/protected/views//layouts/main.php", array("content" => "
<div class="box">
<h1></h1>
<div class="form">
<..."), true) 83 { 84 $widgetCount=count($this->_widgetStack); 85 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 86 $content=$renderer->renderFile($this,$viewFile,$data,$return); 87 else 88 $content=$this->renderInternal($viewFile,$data,$return); 89 if(count($this->_widgetStack)===$widgetCount) 90 return $content; 91 else 92 { 93 $widget=end($this->_widgetStack); |
#13 |
+
–
/home/radkow/ftp/framework18/web/widgets/CContentDecorator.php(78): CBaseController->renderFile("/home/radkow/ftp/protected/views//layouts/main.php", array("content" => "
<div class="box">
<h1></h1>
<div class="form">
<..."), true) 73 $viewFile=$owner->getViewFile($this->view); 74 if($viewFile!==false) 75 { 76 $data=$this->data; 77 $data['content']=$content; 78 return $owner->renderFile($viewFile,$data,true); 79 } 80 else 81 return $content; 82 } 83 } |
#14 |
+
–
/home/radkow/ftp/framework18/web/widgets/CContentDecorator.php(56): CContentDecorator->decorate("
<div class="box">
<h1></h1>
<div class="form">
<...") 51 * This method decorates the output with the specified {@link view}. 52 * @param string $output the captured output to be processed 53 */ 54 public function processOutput($output) 55 { 56 $output=$this->decorate($output); 57 parent::processOutput($output); 58 } 59 60 /** 61 * Decorates the content by rendering a view and embedding the content in it. |
#15 |
+
–
/home/radkow/ftp/framework18/web/widgets/COutputProcessor.php(45): CContentDecorator->processOutput("
<div class="box">
<h1></h1>
<div class="form">
<...") 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 * |
#16 |
+
–
/home/radkow/ftp/framework18/web/CBaseController.php(199): COutputProcessor->run() 194 */ 195 public function endWidget($id='') 196 { 197 if(($widget=array_pop($this->_widgetStack))!==null) 198 { 199 $widget->run(); 200 return $widget; 201 } 202 else 203 throw new CException(Yii::t('yii','{controller} has an extra endWidget({id}) call in its view.', 204 array('{controller}'=>get_class($this),'{id}'=>$id))); |
#17 |
+
–
/home/radkow/ftp/framework18/web/CBaseController.php(294): CBaseController->endWidget("CContentDecorator") 289 * Ends the rendering of content. 290 * @see beginContent 291 */ 292 public function endContent() 293 { 294 $this->endWidget('CContentDecorator'); 295 } 296 } |
#18 |
+
–
/home/radkow/ftp/protected/views/layouts/column2.php(7): CBaseController->endContent() 2 3 <div class="box"> 4 <?php echo $content; ?> 5 </div><!-- content --> 6 7 <?php $this->endContent(); ?> |
#19 |
+
–
/home/radkow/ftp/framework18/web/CBaseController.php(119): require("/home/radkow/ftp/protected/views/layouts/column2.php") 114 $data=$_data_; 115 if($_return_) 116 { 117 ob_start(); 118 ob_implicit_flush(false); 119 require($_viewFile_); 120 return ob_get_clean(); 121 } 122 else 123 require($_viewFile_); 124 } |
#20 |
+
–
/home/radkow/ftp/framework18/web/CBaseController.php(88): CBaseController->renderInternal("/home/radkow/ftp/protected/views//layouts/column2.php", array("content" => "
<h1></h1>
<div class="form">
<form action="/user/login..."), true) 83 { 84 $widgetCount=count($this->_widgetStack); 85 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 86 $content=$renderer->renderFile($this,$viewFile,$data,$return); 87 else 88 $content=$this->renderInternal($viewFile,$data,$return); 89 if(count($this->_widgetStack)===$widgetCount) 90 return $content; 91 else 92 { 93 $widget=end($this->_widgetStack); |
#21 |
+
–
/home/radkow/ftp/framework18/web/CController.php(781): CBaseController->renderFile("/home/radkow/ftp/protected/views//layouts/column2.php", array("content" => "
<h1></h1>
<div class="form">
<form action="/user/login..."), true) 776 { 777 if($this->beforeRender($view)) 778 { 779 $output=$this->renderPartial($view,$data,true); 780 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 781 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 782 783 $this->afterRender($view,$output); 784 785 $output=$this->processOutput($output); 786 |
#22 |
+
–
/home/radkow/ftp/protected/modules/user/controllers/LoginController.php(27): CController->render("/user/login", array("model" => UserLogin)) 22 else 23 $this->redirect(Yii::app()->user->returnUrl); 24 } 25 } 26 // display the login form 27 $this->render('/user/login',array('model'=>$model)); 28 } else 29 $this->redirect(Yii::app()->controller->module->returnUrl); 30 } 31 32 private function lastViset() { |
#23 |
+
–
/home/radkow/ftp/framework18/web/actions/CInlineAction.php(50): LoginController->actionLogin() 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 } |
#24 |
+
–
/home/radkow/ftp/framework18/web/CController.php(300): CInlineAction->runWithParams(array()) 295 { 296 $priorAction=$this->_action; 297 $this->_action=$action; 298 if($this->beforeAction($action)) 299 { 300 if($action->runWithParams($this->getActionParams())===false) 301 $this->invalidActionParams($action); 302 else 303 $this->afterAction($action); 304 } 305 $this->_action=$priorAction; |
#25 |
+
–
/home/radkow/ftp/framework18/web/CController.php(278): CController->runAction(CInlineAction) 273 * @see runAction 274 */ 275 public function runActionWithFilters($action,$filters) 276 { 277 if(empty($filters)) 278 $this->runAction($action); 279 else 280 { 281 $priorAction=$this->_action; 282 $this->_action=$action; 283 CFilterChain::create($this,$action,$filters)->run(); |
#26 |
+
–
/home/radkow/ftp/framework18/web/CController.php(257): CController->runActionWithFilters(CInlineAction, array()) 252 { 253 if(($parent=$this->getModule())===null) 254 $parent=Yii::app(); 255 if($parent->beforeControllerAction($this,$action)) 256 { 257 $this->runActionWithFilters($action,$this->filters()); 258 $parent->afterControllerAction($this,$action); 259 } 260 } 261 else 262 $this->missingAction($actionID); |
#27 |
+
–
/home/radkow/ftp/framework18/web/CWebApplication.php(277): CController->run("") 272 { 273 list($controller,$actionID)=$ca; 274 $oldController=$this->_controller; 275 $this->_controller=$controller; 276 $controller->init(); 277 $controller->run($actionID); 278 $this->_controller=$oldController; 279 } 280 else 281 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 282 array('{route}'=>$route===''?$this->defaultController:$route))); |
#28 |
+
–
/home/radkow/ftp/framework18/web/CWebApplication.php(136): CWebApplication->runController("user/login") 131 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 132 $_GET[$name]=$value; 133 } 134 else 135 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 136 $this->runController($route); 137 } 138 139 /** 140 * Registers the core application components. 141 * This method overrides the parent implementation by registering additional core components. |
#29 |
+
–
/home/radkow/ftp/framework18/base/CApplication.php(158): CWebApplication->processRequest() 153 */ 154 public function run() 155 { 156 if($this->hasEventHandler('onBeginRequest')) 157 $this->onBeginRequest(new CEvent($this)); 158 $this->processRequest(); 159 if($this->hasEventHandler('onEndRequest')) 160 $this->onEndRequest(new CEvent($this)); 161 } 162 163 /** |
#30 |
+
–
/home/radkow/ftp/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(); |