/home/vlcgroup/public_html/protected/models/Newstrans.php(153)
141 return self::model()->with('news', 'news.cat', 'language')->findAll(array( 142 'condition' => 'news.active = 1 AND news.home = 1 AND cat.menu_id = ' . $menu_id . ' AND language.code like "' . Yii::app()->session['lang'] . '"', 143 'order' => 'cat.ord ASC, t.id DESC', 144 'limit' => 6 145 )); 146 } 147 148 public function getNewsById($id) 149 { 150 $result = self::model()->with('news', 'language')->findAll(array( 151 'condition' => 'news.active = 1 AND news_id = ' . $id . ' AND language.code like "' . Yii::app()->session['lang'] . '"', 152 )); 153 return $result[0]; 154 } 155 156 public function getOrtherByCat($news_id, $cat_id) 157 { 158 $result = self::model()->with('news', 'language')->findAll(array( 159 'condition' => 'news.active = 1 AND news.id < ' . $news_id . ' AND news.cat_id = ' . $cat_id . ' AND language.code like "' . Yii::app()->session['lang'] . '"', 160 'order' => 't.id DESC', 161 'limit' => 4 162 )); 163 return $result; 164 } 165
#0 |
+
–
/home/vlcgroup/public_html/protected/controllers/SiteController.php(228): Newstrans->getNewsById("110") 223 else 224 { 225 Yii::app()->language = Yii::app()->session['lang']; 226 } 227 228 $model = Newstrans::getNewsById($id); 229 230 if ($model) 231 { 232 $menu = Menutrans::showMenu($model->news->cat->menu_id); 233 if ($menu) |
#1 |
unknown(0): SiteController->actionNews("su-kien---hoat-dong", "110", "giai-bong-da-cbccvc-va-cnld-tp-hai-phong-nam-2022-")
|
#2 |
+
–
/home/vlcgroup/public_html/framework/web/actions/CAction.php(104): ReflectionMethod->invokeArgs(SiteController, array("su-kien---hoat-dong", "110", "giai-bong-da-cbccvc-va-cnld-tp-hai-phong-nam-2022-")) 099 else if($param->isDefaultValueAvailable()) 100 $ps[]=$param->getDefaultValue(); 101 else 102 return false; 103 } 104 $method->invokeArgs($object,$ps); 105 return true; 106 } 107 } |
#3 |
+
–
/home/vlcgroup/public_html/framework/web/actions/CInlineAction.php(48): CAction->runWithParamsInternal(SiteController, ReflectionMethod, array("cat" => "su-kien---hoat-dong", "id" => "110", "title" => "giai-bong-da-cbccvc-va-cnld-tp-hai-phong-nam-2022-")) 43 { 44 $methodName='action'.$this->getId(); 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 } |
#4 |
+
–
/home/vlcgroup/public_html/framework/web/CController.php(300): CInlineAction->runWithParams(array("cat" => "su-kien---hoat-dong", "id" => "110", "title" => "giai-bong-da-cbccvc-va-cnld-tp-hai-phong-nam-2022-")) 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; |
#5 |
+
–
/home/vlcgroup/public_html/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(); |
#6 |
+
–
/home/vlcgroup/public_html/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); |
#7 |
+
–
/home/vlcgroup/public_html/framework/web/CWebApplication.php(328): CController->run("News") 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))); |
#8 |
+
–
/home/vlcgroup/public_html/framework/web/CWebApplication.php(121): CWebApplication->runController("site/News") 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. |
#9 |
+
–
/home/vlcgroup/public_html/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 /** |
#10 |
+
–
/home/vlcgroup/public_html/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(); |