/home/trungdq/domains/trungdiep.com/public_html/protected/controllers/SiteController.php(302)
290 } 291 else 292 { 293 $this->redirect(Yii::app()->homeUrl); 294 } 295 } 296 297 public function actionProduct($id, $name) 298 { 299 session_start(); 300 $model = Product::model()->findByPk($id); 301 302 $this->cat_id = $model->cat_id; 303 304 //navigation bar 305 if (!empty($model->type)) { 306 $type = $model->type; 307 if (!empty($type->cat)) { 308 $cat = $type->cat; 309 $this->navigation_bar = $this->navigation_bar . '<i class="fa fa-angle-double-right"></i>' . CHtml::link($cat->name, Yii::app()->urlManager->createUrl('site/ListProduct', array('id' => $cat->id, 'name' => $cat->url))); 310 } 311 312 if (!empty($type->type)) { 313 $ptype = $type->type; 314 $this->navigation_bar = $this->navigation_bar . '<i class="fa fa-angle-double-right"></i>' . CHtml::link($ptype->name, Yii::app()->urlManager->createUrl('site/ListProductByType', array('id' => $ptype->id, 'name' => $ptype->url)));
#0 |
unknown(0): SiteController->actionProduct("1234", "hop-o-cung-25-usb-30-orico-2577u3-bk-den")
|
#1 |
+
–
/home/trungdq/domains/trungdiep.com/public_html/framework/web/actions/CAction.php(104): ReflectionMethod->invokeArgs(SiteController, array("1234", "hop-o-cung-25-usb-30-orico-2577u3-bk-den")) 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("name" => "hop-o-cung-25-usb-30-orico-2577u3-bk-den", "id" => "1234")) 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("name" => "hop-o-cung-25-usb-30-orico-2577u3-bk-den", "id" => "1234")) 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("Product") 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/Product") 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(); |