/var/www/oferta_servicio/protected/views/layouts/main.php(77)
65 </div> 66 </div> 67 </div> 68 69 70 </div> 71 72 <div class="container" id="page"> 73 74 75 76 <?php 77 $id_usuario=Yii::app()->user->id; 78 $buscar_persona=Usuario::model()->find('id=:id',array(':id'=>$id_usuario)); 79 if($buscar_persona){ 80 $perfil=$buscar_persona->id_perfil; 81 $persona=$buscar_persona->id_persona;} 82 else{ 83 $perfil=0; 84 $persona=''; 85 } 86 87 ?> 88 89
#0 |
+
–
/var/www/oferta_servicio/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 |
+
–
/var/www/oferta_servicio/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 |
+
–
/var/www/oferta_servicio/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 |
+
–
/var/www/oferta_servicio/yii/framework/web/CDbHttpSession.php(161): CModule->getComponent("db") 156 { 157 if($this->_db!==null) 158 return $this->_db; 159 else if(($id=$this->connectionID)!==null) 160 { 161 if(($this->_db=Yii::app()->getComponent($id)) instanceof CDbConnection) 162 return $this->_db; 163 else 164 throw new CException(Yii::t('yii','CDbHttpSession.connectionID "{id}" is invalid. Please make sure it refers to the ID of a CDbConnection application component.', 165 array('{id}'=>$id))); 166 } |
#4 |
+
–
/var/www/oferta_servicio/yii/framework/web/CDbHttpSession.php(185): CDbHttpSession->getDbConnection() 180 */ 181 public function openSession($savePath,$sessionName) 182 { 183 if($this->autoCreateSessionTable) 184 { 185 $db=$this->getDbConnection(); 186 $db->setActive(true); 187 try 188 { 189 $db->createCommand()->delete($this->sessionTableName,'expire<:expire',array(':expire'=>time())); 190 } |
#5 |
unknown(0): CDbHttpSession->openSession("/var/lib/php5", "PHPSESSID")
|
#6 |
+
–
/var/www/oferta_servicio/yii/framework/web/CHttpSession.php(115): session_start() 110 public function open() 111 { 112 if($this->getUseCustomStorage()) 113 @session_set_save_handler(array($this,'openSession'),array($this,'closeSession'),array($this,'readSession'),array($this,'writeSession'),array($this,'destroySession'),array($this,'gcSession')); 114 115 @session_start(); 116 if(YII_DEBUG && session_id()=='') 117 { 118 $message=Yii::t('yii','Failed to start session.'); 119 if(function_exists('error_get_last')) 120 { |
#7 |
+
–
/var/www/oferta_servicio/yii/framework/web/CHttpSession.php(89): CHttpSession->open() 84 */ 85 public function init() 86 { 87 parent::init(); 88 if($this->autoStart) 89 $this->open(); 90 register_shutdown_function(array($this,'close')); 91 } 92 93 /** 94 * Returns a value indicating whether to use custom session storage. |
#8 |
+
–
/var/www/oferta_servicio/yii/framework/base/CModule.php(388): CHttpSession->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 |
#9 |
+
–
/var/www/oferta_servicio/yii/framework/web/CWebApplication.php(202): CModule->getComponent("session") 197 /** 198 * @return CHttpSession the session component 199 */ 200 public function getSession() 201 { 202 return $this->getComponent('session'); 203 } 204 205 /** 206 * @return CWebUser the user session information 207 */ |
#10 |
+
–
/var/www/oferta_servicio/yii/framework/web/auth/CWebUser.php(194): CWebApplication->getSession() 189 * performing cookie-based authentication if enabled, and updating the flash variables. 190 */ 191 public function init() 192 { 193 parent::init(); 194 Yii::app()->getSession()->open(); 195 if($this->getIsGuest() && $this->allowAutoLogin) 196 $this->restoreFromCookie(); 197 else if($this->autoRenewCookie && $this->allowAutoLogin) 198 $this->renewCookie(); 199 if($this->autoUpdateFlash) |
#11 |
+
–
/var/www/oferta_servicio/yii/framework/base/CModule.php(388): CWebUser->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 |
#12 |
+
–
/var/www/oferta_servicio/yii/framework/base/CModule.php(104): CModule->getComponent("user") 099 * @return mixed the named property value 100 */ 101 public function __get($name) 102 { 103 if($this->hasComponent($name)) 104 return $this->getComponent($name); 105 else 106 return parent::__get($name); 107 } 108 109 /** |
#13 |
+
–
/var/www/oferta_servicio/protected/views/layouts/main.php(77): CModule->__get("user") 72 <div class="container" id="page"> 73 74 75 76 <?php 77 $id_usuario=Yii::app()->user->id; 78 $buscar_persona=Usuario::model()->find('id=:id',array(':id'=>$id_usuario)); 79 if($buscar_persona){ 80 $perfil=$buscar_persona->id_perfil; 81 $persona=$buscar_persona->id_persona;} 82 else{ |
#14 |
+
–
/var/www/oferta_servicio/yii/framework/web/CBaseController.php(127): require("/var/www/oferta_servicio/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 } |
#15 |
+
–
/var/www/oferta_servicio/yii/framework/web/CBaseController.php(96): CBaseController->renderInternal("/var/www/oferta_servicio/protected/views//layouts/main.php", array("content" => "<div id="content">
<link rel="stylesheet" type="text/css" href=..."), 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); |
#16 |
+
–
/var/www/oferta_servicio/yii/framework/web/widgets/CContentDecorator.php(77): CBaseController->renderFile("/var/www/oferta_servicio/protected/views//layouts/main.php", array("content" => "<div id="content">
<link rel="stylesheet" type="text/css" href=..."), 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 } |
#17 |
+
–
/var/www/oferta_servicio/yii/framework/web/widgets/CContentDecorator.php(55): CContentDecorator->decorate("<div id="content">
<link rel="stylesheet" type="text/css" href=...") 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. |
#18 |
+
–
/var/www/oferta_servicio/yii/framework/web/widgets/COutputProcessor.php(45): CContentDecorator->processOutput("<div id="content">
<link rel="stylesheet" type="text/css" href=...") 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 * |
#19 |
+
–
/var/www/oferta_servicio/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))); |
#20 |
+
–
/var/www/oferta_servicio/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 } |
#21 |
+
–
/var/www/oferta_servicio/protected/views/layouts/column1.php(6): CBaseController->endContent() 1 <?php /* @var $this Controller */ ?> 2 <?php $this->beginContent('//layouts/main'); ?> 3 <div id="content"> 4 <?php echo $content; ?> 5 </div><!-- content --> 6 <?php $this->endContent(); ?> |
#22 |
+
–
/var/www/oferta_servicio/yii/framework/web/CBaseController.php(127): require("/var/www/oferta_servicio/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 } |
#23 |
+
–
/var/www/oferta_servicio/yii/framework/web/CBaseController.php(96): CBaseController->renderInternal("/var/www/oferta_servicio/protected/views//layouts/column1.php", array("content" => "<link rel="stylesheet" type="text/css" href="/oferta_servicio/cs..."), 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); |
#24 |
+
–
/var/www/oferta_servicio/yii/framework/web/CController.php(785): CBaseController->renderFile("/var/www/oferta_servicio/protected/views//layouts/column1.php", array("content" => "<link rel="stylesheet" type="text/css" href="/oferta_servicio/cs..."), 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 |
#25 |
+
–
/var/www/oferta_servicio/protected/controllers/SiteController.php(143): CController->render("login", array("model" => LoginForm, "Captcha" => Captcha)) 138 // validate user input and redirect to the previous page if valid 139 if($Captcha->validate()&&$model->validate() && $model->login()) 140 $this->redirect(Yii::app()->user->returnUrl); 141 } 142 // display the login form 143 $this->render('login',array('model'=>$model,'Captcha'=>$Captcha)); 144 } 145 146 /** 147 * Logs out the current user and redirect to homepage. 148 */ |
#26 |
+
–
/var/www/oferta_servicio/yii/framework/web/actions/CInlineAction.php(50): SiteController->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 } |
#27 |
+
–
/var/www/oferta_servicio/yii/framework/web/CController.php(309): CInlineAction->runWithParams(array("r" => "site/Login")) 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; |
#28 |
+
–
/var/www/oferta_servicio/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(); |
#29 |
+
–
/var/www/oferta_servicio/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); |
#30 |
+
–
/var/www/oferta_servicio/yii/framework/web/CWebApplication.php(283): CController->run("Login") 278 { 279 list($controller,$actionID)=$ca; 280 $oldController=$this->_controller; 281 $this->_controller=$controller; 282 $controller->init(); 283 $controller->run($actionID); 284 $this->_controller=$oldController; 285 } 286 else 287 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 288 array('{route}'=>$route===''?$this->defaultController:$route))); |
#31 |
+
–
/var/www/oferta_servicio/yii/framework/web/CWebApplication.php(142): CWebApplication->runController("site/Login") 137 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 138 $_GET[$name]=$value; 139 } 140 else 141 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 142 $this->runController($route); 143 } 144 145 /** 146 * Registers the core application components. 147 * This method overrides the parent implementation by registering additional core components. |
#32 |
+
–
/var/www/oferta_servicio/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 /** |
#33 |
+
–
/var/www/oferta_servicio/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(); |