/home/trungdq/domains/trungdiep.com/public_html/protected/controllers/SiteController.php(364)
352 session_start(); 353 $model = Product::model()->findByPk($id); 354 355 //=========SEO========= 356 if (!empty($model->seo_title) && !empty($model->seo_desc) && !empty($model->seo_keyword)) { 357 $this->pageTitle = $model->seo_title; 358 $this->description = $model->seo_desc; 359 $this->keyword = $model->seo_keyword; 360 } 361 else 362 { 363 $arr_seo = array( 364 'title' => $model->name, 365 'description' => ($model->name . ' - ' . myExt::getBrief($model->brief)), 366 'keyword' => $model->name 367 ); 368 Seo::getSeo(Seo::PRODUCT_PAGE, $arr_seo); 369 } 370 $this->og_title = $model->name; 371 $this->og_description = myExt::getBrief($model->brief); 372 $this->og_type = 'article'; 373 if (!empty($model->imgs)) { 374 $this->og_image = str_replace('thumb/', '', $model->imgs[0]->path); 375 } 376 //=========SEO=========
#0 |
unknown(0): SiteController->actionView("1254")
|
#1 |
+
–
/home/trungdq/domains/trungdiep.com/public_html/framework/web/actions/CAction.php(104): ReflectionMethod->invokeArgs(SiteController, array("1254")) 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 } |
#2 |
+
–
/home/trungdq/domains/trungdiep.com/public_html/framework/web/actions/CInlineAction.php(48): CAction->runWithParamsInternal(SiteController, ReflectionMethod, array("id" => "1254")) 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 } |
#3 |
+
–
/home/trungdq/domains/trungdiep.com/public_html/framework/web/CController.php(300): CInlineAction->runWithParams(array("id" => "1254")) 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; |
#4 |
+
–
/home/trungdq/domains/trungdiep.com/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(); |
#5 |
+
–
/home/trungdq/domains/trungdiep.com/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); |
#6 |
+
–
/home/trungdq/domains/trungdiep.com/public_html/framework/web/CWebApplication.php(328): CController->run("View") 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))); |
#7 |
+
–
/home/trungdq/domains/trungdiep.com/public_html/framework/web/CWebApplication.php(121): CWebApplication->runController("site/View") 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. |
#8 |
+
–
/home/trungdq/domains/trungdiep.com/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 /** |
#9 |
+
–
/home/trungdq/domains/trungdiep.com/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(); |