/home/lup59ita/public_html/protected/components/db/DbUtil.php(474)
462 if (!$is_array) $res= $res[0]; 463 return ($ok ? $res : false); 464 }//executeSqlStatements 465 466 //------------------------------------------------------------------------- 467 //Establecer el sistema de cache para la base de datos si la version de Yii 468 //lo permite... 469 public static function cache( $duration=null, $dependency=null, $queryCount=1) 470 { 471 //El sistema de cache para CDbConnection existe a partir de Yii 1.1.7 472 if (version_compare( Yii::getVersion(), '1.1.7') >= 0) { 473 if ($duration === null) $duration= 60*30;//Media hora si no se indica... 474 Yii::app()->db->cache( $duration, $dependency, $queryCount); 475 }//if 476 }//cache 477 478 }//class DbUtil
#0 |
+
–
/home/lup59ita/public_html/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/lup59ita/public_html/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/lup59ita/public_html/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/lup59ita/public_html/framework/base/CModule.php(103): CModule->getComponent("db") 098 * @return mixed the named property value 099 */ 100 public function __get($name) 101 { 102 if($this->hasComponent($name)) 103 return $this->getComponent($name); 104 else 105 return parent::__get($name); 106 } 107 108 /** |
#4 |
+
–
/home/lup59ita/public_html/protected/components/db/DbUtil.php(474): CModule->__get("db") 469 public static function cache( $duration=null, $dependency=null, $queryCount=1) 470 { 471 //El sistema de cache para CDbConnection existe a partir de Yii 1.1.7 472 if (version_compare( Yii::getVersion(), '1.1.7') >= 0) { 473 if ($duration === null) $duration= 60*30;//Media hora si no se indica... 474 Yii::app()->db->cache( $duration, $dependency, $queryCount); 475 }//if 476 }//cache 477 478 }//class DbUtil |
#5 |
+
–
/home/lup59ita/public_html/protected/components/lupa/LupaDB.php(458): DbUtil::cache(3600, null, 1) 453 454 //------------------------------------------------------------------------- 455 public static function setCacheDB( $queryCount=1, $duration=null, $dependency=null) 456 { 457 if ($duration === null) $duration= self::CACHE_EXPIRES; 458 DbUtil::cache( $duration, $dependency, $queryCount); 459 }//setCacheDB 460 461 //------------------------------------------------------------------------- 462 //------------------------------------------------------------------------- 463 //Metodos con listas fijas de datos fijos usadas en la base de datos. |
#6 |
+
–
/home/lup59ita/public_html/protected/controllers_front/EntidadesController.php(139): LupaDB::setCacheDB(1) 134 //Generar los libros del ID de la entidad recibida... 135 public function verLibros( $id, $clase) 136 { 137 //---------- 138 //Activar el Sistema de Cache de DB (si se puede) a la consulta del SELECT. 139 LupaDB::setCacheDB( 1); 140 if (strcasecmp( ''.$id, (int)$id) == 0) { 141 $entidad= Entidades::model()->findByPk( $id); 142 $entidades= array(); 143 $entidadId= true; 144 } else { |
#7 |
+
–
/home/lup59ita/public_html/protected/controllers_front/EntidadesController.php(33): EntidadesController->verLibros("14054", "A") 28 public function actionInicio( $id=null) 29 { 30 if (empty($id) && ($id != '0')) { 31 $this->verEntidades(); 32 } else { 33 $this->verLibros( $id, $this->clase_entidad); 34 }//if 35 }//actionInicio 36 37 //------------------------------------------------------------------------- 38 public function actionAutor( $id=null) |
#8 |
+
–
/home/lup59ita/public_html/protected/controllers_front/EntidadesController.php(41): EntidadesController->actionInicio("14054") 36 37 //------------------------------------------------------------------------- 38 public function actionAutor( $id=null) 39 { 40 $this->clase_entidad= LupaDB::CLASE_AUTOR; 41 $this->actionInicio( $id); 42 }//actionAutor 43 44 //------------------------------------------------------------------------- 45 public function actionIlustrador( $id=null) 46 { |
#9 |
unknown(0): EntidadesController->actionAutor("14054")
|
#10 |
+
–
/home/lup59ita/public_html/framework/web/actions/CAction.php(108): ReflectionMethod->invokeArgs(EntidadesController, array("14054")) 103 elseif($param->isDefaultValueAvailable()) 104 $ps[]=$param->getDefaultValue(); 105 else 106 return false; 107 } 108 $method->invokeArgs($object,$ps); 109 return true; 110 } 111 } |
#11 |
+
–
/home/lup59ita/public_html/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(EntidadesController, ReflectionMethod, array("id" => "14054", "f" => array("letra" => "H"))) 42 { 43 $methodName='action'.$this->getId(); 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 } |
#12 |
+
–
/home/lup59ita/public_html/framework/web/CController.php(308): CInlineAction->runWithParams(array("id" => "14054", "f" => array("letra" => "H"))) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#13 |
+
–
/home/lup59ita/public_html/framework/web/CController.php(286): CController->runAction(CInlineAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#14 |
+
–
/home/lup59ita/public_html/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#15 |
+
–
/home/lup59ita/public_html/framework/web/CWebApplication.php(282): CController->run("autor") 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))); |
#16 |
+
–
/home/lup59ita/public_html/framework/web/CWebApplication.php(141): CWebApplication->runController("entidades/autor/id/14054/f[letra]/H") 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. |
#17 |
+
–
/home/lup59ita/public_html/framework/base/CApplication.php(169): CWebApplication->processRequest() 164 public function run() 165 { 166 if($this->hasEventHandler('onBeginRequest')) 167 $this->onBeginRequest(new CEvent($this)); 168 register_shutdown_function(array($this,'end'),0,false); 169 $this->processRequest(); 170 if($this->hasEventHandler('onEndRequest')) 171 $this->onEndRequest(new CEvent($this)); 172 } 173 174 /** |
#18 |
+
–
/home/lup59ita/public_html/protected/config/config_functions.php(376): CApplication->run() 371 //echo 'CONTROLADOR='; print_r($ruta); 372 //3. E intentar ejecutar la ruta como un controlador. 373 $app->runController( $ruta); 374 } else { 375 //Ejecutar la aplicacion completa... 376 $app->run(); 377 }//if 378 379 if ($return) $res= ob_get_clean(); 380 }//if "ejecutar aplicacion" 381 /*-----*XX/ |
#19 |
+
–
/home/lup59ita/public_html/index-yii.php(29): ejecutar() 24 //--------------------------------------------------------------------------- 25 //Sistema de carga diferenciando instalaciones... 26 require_once( dirname(__FILE__).'/protected/config/config_functions.php'); 27 //--------------------------------------------------------------------------- 28 //Ejecutar la aplicación si no esta definida la ejecución externa como función. 29 if (!defined('YII_APP_PATH')) ejecutar(); |
#20 |
+
–
/home/lup59ita/public_html/index.php(12): require_once("/home/lup59ita/public_html/index-yii.php") 07 //--------------------------------------------------------------------------- 08 //Punto de entrada para la aplicacion en modo "FRONT-END" si no está ya definido. 09 if (!defined('YII_APP_FRONT_END')) define('YII_APP_FRONT_END',true); 10 if (!defined('YII_APP_FRONT_ENTRY')) define('YII_APP_FRONT_ENTRY', basename(__FILE__));//Entrada FRONT-END 11 //--------------------------------------------------------------------------- 12 require_once( implode( DIRECTORY_SEPARATOR, array( dirname(__FILE__), 'index-yii.php'))); 13 //require_once( 'index-yii.php'); 14 |