/var/www/vhosts/asociaperitos.com/httpdocs/protected/helpers/ACMS.php(59)
47 48 class ACMS { 49 //put your code here 50 51 //empty function for load this class and all constants defined in this file. 52 public static function load(){ 53 } 54 55 public static function getTitle($data, $lang=null){ 56 //if(!isset($lang)) 57 // $lang=ACMS::getDefaultLang()->idLang; 58 $lang=YII::app()->getLanguage(); 59 foreach ($data->content as $item) 60 if($item->lang===$lang) 61 return $item->title; 62 } 63 64 public static function getText($data, $lang=null){ 65 //if(!isset($lang)) 66 // $lang=ACMS::getDefaultLang()->idLang; 67 $lang=YII::app()->getLanguage(); 68 foreach ($data->content as $item) 69 if($item->lang===$lang) 70 return $item->text; 71 }
#0 |
+
–
/var/www/vhosts/asociaperitos.com/httpdocs/themes/asociaperitos/views/site/event.php(20): ACMS::getTitle(null) 15 ?> 16 17 <!--Proximos Eventos--> 18 <div class="proximos_eventos clearfix"> 19 <br /> 20 <h3 style="color:#CD0C0C; font-size:16px;"><?php echo ACMS::getTitle($model)?></h3><br> 21 <?php echo "<span class='fecha_evento'>$dia de $mes $ano</span>"; ?> 22 <p>Lugar: <?php echo CHtml::encode($model->location); ?></p> 23 <br /> 24 <?php echo ACMS::getText($model)?> 25 <div class="clearfix" style="float:right;"> |
#1 |
+
–
/var/www/vhosts/asociaperitos.com/httpdocs/yii/framework/web/CBaseController.php(119): require("/var/www/vhosts/asociaperitos.com/httpdocs/themes/asociaperitos/...") 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 } |
#2 |
+
–
/var/www/vhosts/asociaperitos.com/httpdocs/yii/framework/web/CBaseController.php(88): CBaseController->renderInternal("/var/www/vhosts/asociaperitos.com/httpdocs/themes/asociaperitos/...", array(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); |
#3 |
+
–
/var/www/vhosts/asociaperitos.com/httpdocs/yii/framework/web/CController.php(833): CBaseController->renderFile("/var/www/vhosts/asociaperitos.com/httpdocs/themes/asociaperitos/...", array(null), true) 828 */ 829 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 830 { 831 if(($viewFile=$this->getViewFile($view))!==false) 832 { 833 $output=$this->renderFile($viewFile,$data,true); 834 if($processOutput) 835 $output=$this->processOutput($output); 836 if($return) 837 return $output; 838 else |
#4 |
+
–
/var/www/vhosts/asociaperitos.com/httpdocs/yii/framework/web/CController.php(746): CController->renderPartial("event", array(null), true) 741 */ 742 public function render($view,$data=null,$return=false) 743 { 744 if($this->beforeRender($view)) 745 { 746 $output=$this->renderPartial($view,$data,true); 747 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 748 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 749 750 $this->afterRender($view,$output); 751 |
#5 |
+
–
/var/www/vhosts/asociaperitos.com/httpdocs/protected/controllers/SiteController.php(320): CController->render("event", array(null)) 315 } 316 317 public function actionEvent(){ 318 if(isset($_GET['id'])){ 319 $event=Evento::model()->findByPk($_GET['id']); 320 $this->render('event',array('model'=>$event)); 321 }else{ 322 throw new CHttpException(404,'The requested page does not exist.'); 323 } 324 } 325 |
#6 |
+
–
/var/www/vhosts/asociaperitos.com/httpdocs/yii/framework/web/actions/CInlineAction.php(57): SiteController->actionEvent() 52 throw new CHttpException(400,Yii::t('yii','Your request is invalid.')); 53 } 54 $method->invokeArgs($controller,$params); 55 } 56 else 57 $controller->$methodName(); 58 } 59 } |
#7 |
+
–
/var/www/vhosts/asociaperitos.com/httpdocs/yii/framework/web/CController.php(300): CInlineAction->run() 295 { 296 $priorAction=$this->_action; 297 $this->_action=$action; 298 if($this->beforeAction($action)) 299 { 300 $action->run(); 301 $this->afterAction($action); 302 } 303 $this->_action=$priorAction; 304 } 305 |
#8 |
+
–
/var/www/vhosts/asociaperitos.com/httpdocs/yii/framework/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(); |
#9 |
+
–
/var/www/vhosts/asociaperitos.com/httpdocs/yii/framework/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); |
#10 |
+
–
/var/www/vhosts/asociaperitos.com/httpdocs/yii/framework/web/CWebApplication.php(328): CController->run("event") 323 { 324 list($controller,$actionID)=$ca; 325 $oldController=$this->_controller; 326 $this->_controller=$controller; 327 $controller->init(); 328 $controller->run($actionID); 329 $this->_controller=$oldController; 330 } 331 else 332 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 333 array('{route}'=>$route===''?$this->defaultController:$route))); |
#11 |
+
–
/var/www/vhosts/asociaperitos.com/httpdocs/yii/framework/web/CWebApplication.php(121): CWebApplication->runController("site/event") 116 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 117 $_GET[$name]=$value; 118 } 119 else 120 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 121 $this->runController($route); 122 } 123 124 /** 125 * Registers the core application components. 126 * This method overrides the parent implementation by registering additional core components. |
#12 |
+
–
/var/www/vhosts/asociaperitos.com/httpdocs/yii/framework/base/CApplication.php(155): CWebApplication->processRequest() 150 */ 151 public function run() 152 { 153 if($this->hasEventHandler('onBeginRequest')) 154 $this->onBeginRequest(new CEvent($this)); 155 $this->processRequest(); 156 if($this->hasEventHandler('onEndRequest')) 157 $this->onEndRequest(new CEvent($this)); 158 } 159 160 /** |
#13 |
+
–
/var/www/vhosts/asociaperitos.com/httpdocs/index.php(10): CApplication->run() 05 06 if(file_exists($config)){ 07 // remove the following line when in production mode 08 defined('YII_DEBUG') or define('YII_DEBUG',true); 09 require_once($yii); 10 Yii::createWebApplication($config)->run(); 11 }else{ 12 header('Location: install/index.php'); 13 } |