/home/sejas/bucletube.es/protected/views/site/pages/top-videos.php(4)
01 <?php 02 include_once('Video.php'); 03 04 $connection=Yii::app()->db; 05 $sql="SELECT * FROM `vista_videos_descripcion` WHERE NOT deleted limit 30"; //limit 06 $command=$connection->createCommand($sql); 07 $rows=$command->queryAll(); 08 09 10 11 12 echo '<ul class="videos">'; 13 //para todo el arhcivo 14 foreach ($rows as $row) { 15 $video=new Video( $row['video_id'],$row['titulo'],$row['descripcion']); 16 echo "<li><a href=\"$video->url_bucletube\" alt=\"$video->titulo\" class=\"tip_trigger\">$video->img <span class=\"mytitle\"> <h3>$video->titulo</h3> <br /> $video->descripcion</span></a> </li>";
#0 |
+
–
/home/sejas/bucletube.es/include/yii-1.1.8.r3324/framework/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/sejas/bucletube.es/include/yii-1.1.8.r3324/framework/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/sejas/bucletube.es/include/yii-1.1.8.r3324/framework/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/sejas/bucletube.es/include/yii-1.1.8.r3324/framework/base/CModule.php(86): CModule->getComponent("db") 81 * @return mixed the named property value 82 */ 83 public function __get($name) 84 { 85 if($this->hasComponent($name)) 86 return $this->getComponent($name); 87 else 88 return parent::__get($name); 89 } 90 91 /** |
#4 |
+
–
/home/sejas/bucletube.es/protected/views/site/pages/top-videos.php(4): CModule->__get("db") 1 <?php 2 include_once('Video.php'); 3 4 $connection=Yii::app()->db; 5 $sql="SELECT * FROM `vista_videos_descripcion` WHERE NOT deleted limit 30"; //limit 6 $command=$connection->createCommand($sql); 7 $rows=$command->queryAll(); 8 9 |
#5 |
+
–
/home/sejas/bucletube.es/include/yii-1.1.8.r3324/framework/web/CBaseController.php(119): require("/home/sejas/bucletube.es/protected/views/site/pages/top-videos.p...") 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 } |
#6 |
+
–
/home/sejas/bucletube.es/include/yii-1.1.8.r3324/framework/web/CBaseController.php(88): CBaseController->renderInternal("/home/sejas/bucletube.es/protected/views/site/pages/top-videos.p...", null, 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); |
#7 |
+
–
/home/sejas/bucletube.es/include/yii-1.1.8.r3324/framework/web/CController.php(866): CBaseController->renderFile("/home/sejas/bucletube.es/protected/views/site/pages/top-videos.p...", null, true) 861 */ 862 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 863 { 864 if(($viewFile=$this->getViewFile($view))!==false) 865 { 866 $output=$this->renderFile($viewFile,$data,true); 867 if($processOutput) 868 $output=$this->processOutput($output); 869 if($return) 870 return $output; 871 else |
#8 |
+
–
/home/sejas/bucletube.es/include/yii-1.1.8.r3324/framework/web/CController.php(779): CController->renderPartial("pages/top-videos", null, true) 774 */ 775 public function render($view,$data=null,$return=false) 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 |
#9 |
+
–
/home/sejas/bucletube.es/include/yii-1.1.8.r3324/framework/web/actions/CViewAction.php(138): CController->render("pages/top-videos") 133 { 134 $text=file_get_contents($controller->getViewFile($this->view)); 135 $controller->renderText($text); 136 } 137 else 138 $controller->render($this->view); 139 $this->onAfterRender(new CEvent($this)); 140 } 141 142 if($this->layout!==null) 143 $controller->layout=$layout; |
#10 |
+
–
/home/sejas/bucletube.es/include/yii-1.1.8.r3324/framework/web/actions/CAction.php(72): CViewAction->run() 67 { 68 $method=new ReflectionMethod($this, 'run'); 69 if($method->getNumberOfParameters()>0) 70 return $this->runWithParamsInternal($this, $method, $params); 71 else 72 return $this->run(); 73 } 74 75 /** 76 * Executes a method of an object with the supplied named parameters. 77 * This method is internally used. |
#11 |
+
–
/home/sejas/bucletube.es/include/yii-1.1.8.r3324/framework/web/CController.php(300): CAction->runWithParams(array("r" => "site/page", "view" => "top-videos")) 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; |
#12 |
+
–
/home/sejas/bucletube.es/include/yii-1.1.8.r3324/framework/web/CController.php(278): CController->runAction(CViewAction) 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(); |
#13 |
+
–
/home/sejas/bucletube.es/include/yii-1.1.8.r3324/framework/web/CController.php(257): CController->runActionWithFilters(CViewAction, 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); |
#14 |
+
–
/home/sejas/bucletube.es/include/yii-1.1.8.r3324/framework/web/CWebApplication.php(277): CController->run("page") 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))); |
#15 |
+
–
/home/sejas/bucletube.es/include/yii-1.1.8.r3324/framework/web/CWebApplication.php(136): CWebApplication->runController("site/page") 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. |
#16 |
+
–
/home/sejas/bucletube.es/include/yii-1.1.8.r3324/framework/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 /** |
#17 |
+
–
/home/sejas/bucletube.es/index.php(15): CApplication->run() 10 defined('YII_DEBUG') or define('YII_DEBUG',true); 11 // specify how many levels of call stack should be shown in each log message 12 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 13 14 require_once($yii); 15 Yii::createWebApplication($config)->run(); |