/home/raovobjd/muahangmy.com/protected/controllers/front/ProductController.php(9)
01 <?php 02 03 class ProductController extends Controller { 04 public $layout = 'product_page'; 05 06 public function actionDetail() { 07 if (!isset($_GET['product_id'])) throw new CHttpException(999, 'Invalid request'); 08 $product = Product::model()->findByPk($_GET['product_id']); 09 if ($product == null) throw new CHttpException(999, 'Invalid request'); 10 $product->views++; 11 $product->save(); 12 13 //region for SEO 14 $seo_keyword = $product->product_name . ' , ' . Yii::app()->params['meta_keyword']; 15 $seo_description = $product->product_name . ' , ' . Yii::app()->params['meta_description'];; 16 Yii::app()->clientScript->registerMetaTag($seo_keyword, 'keywords'); 17 Yii::app()->clientScript->registerMetaTag($seo_description, 'description'); 18 //canonical & title link 19 $this->pageTitle = $product->product_name . ' , ' . Yii::app()->params['meta_title']; 20 Yii::app()->clientScript->registerLinkTag('canonical', null, HSCommon::getCurrentUrl()); 21 //endregion
#0 |
+
–
/home/raovobjd/muahangmy.com/framework/yiilite.php(4058): ProductController->actionDetail() 4053 $controller=$this->getController(); 4054 $method=new ReflectionMethod($controller, $methodName); 4055 if($method->getNumberOfParameters()>0) 4056 return $this->runWithParamsInternal($controller, $method, $params); 4057 else 4058 return $controller->$methodName(); 4059 } 4060 } 4061 class CWebUser extends CApplicationComponent implements IWebUser 4062 { 4063 const FLASH_KEY_PREFIX='Yii.CWebUser.flash.'; |
#1 |
+
–
/home/raovobjd/muahangmy.com/framework/yiilite.php(3570): CInlineAction->runWithParams(array("product_id" => "82249", "name" => "concord-watches-concord-delirium-steel-and-gold-the-case-is-2.8m...")) 3565 { 3566 $priorAction=$this->_action; 3567 $this->_action=$action; 3568 if($this->beforeAction($action)) 3569 { 3570 if($action->runWithParams($this->getActionParams())===false) 3571 $this->invalidActionParams($action); 3572 else 3573 $this->afterAction($action); 3574 } 3575 $this->_action=$priorAction; |
#2 |
+
–
/home/raovobjd/muahangmy.com/framework/yiilite.php(3555): CController->runAction(CInlineAction) 3550 $this->missingAction($actionID); 3551 } 3552 public function runActionWithFilters($action,$filters) 3553 { 3554 if(empty($filters)) 3555 $this->runAction($action); 3556 else 3557 { 3558 $priorAction=$this->_action; 3559 $this->_action=$action; 3560 CFilterChain::create($this,$action,$filters)->run(); |
#3 |
+
–
/home/raovobjd/muahangmy.com/framework/yiilite.php(3545): CController->runActionWithFilters(CInlineAction, array()) 3540 { 3541 if(($parent=$this->getModule())===null) 3542 $parent=Yii::app(); 3543 if($parent->beforeControllerAction($this,$action)) 3544 { 3545 $this->runActionWithFilters($action,$this->filters()); 3546 $parent->afterControllerAction($this,$action); 3547 } 3548 } 3549 else 3550 $this->missingAction($actionID); |
#4 |
+
–
/home/raovobjd/muahangmy.com/framework/yiilite.php(1746): CController->run("detail") 1741 { 1742 list($controller,$actionID)=$ca; 1743 $oldController=$this->_controller; 1744 $this->_controller=$controller; 1745 $controller->init(); 1746 $controller->run($actionID); 1747 $this->_controller=$oldController; 1748 } 1749 else 1750 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 1751 array('{route}'=>$route===''?$this->defaultController:$route))); |
#5 |
+
–
/home/raovobjd/muahangmy.com/framework/yiilite.php(1666): CWebApplication->runController("product/detail") 1661 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 1662 $_GET[$name]=$value; 1663 } 1664 else 1665 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 1666 $this->runController($route); 1667 } 1668 protected function registerCoreComponents() 1669 { 1670 parent::registerCoreComponents(); 1671 $components=array( |
#6 |
+
–
/home/raovobjd/muahangmy.com/framework/yiilite.php(1191): CWebApplication->processRequest() 1186 public function run() 1187 { 1188 if($this->hasEventHandler('onBeginRequest')) 1189 $this->onBeginRequest(new CEvent($this)); 1190 register_shutdown_function(array($this,'end'),0,false); 1191 $this->processRequest(); 1192 if($this->hasEventHandler('onEndRequest')) 1193 $this->onEndRequest(new CEvent($this)); 1194 } 1195 public function end($status=0,$exit=true) 1196 { |
#7 |
+
–
/home/raovobjd/muahangmy.com/protected/components/WebApplicationEndBehavior.php(24): CApplication->run() 19 // and raise it. 20 $this->onModuleCreate = array($this, 'changeModulePaths'); 21 $this->onModuleCreate(new CEvent($this->owner)); 22 23 $this->configMailerComponent(); 24 $this->owner->run(); // Run application. 25 } 26 27 // This event should be raised when CWebApplication 28 // or CWebModule instances are being initialized. 29 public function onModuleCreate ($event) { |
#8 |
+
–
/home/raovobjd/muahangmy.com/framework/yiilite.php(699): WebApplicationEndBehavior->runEnd("front") 694 if($this->_m!==null) 695 { 696 foreach($this->_m as $object) 697 { 698 if($object->getEnabled() && method_exists($object,$name)) 699 return call_user_func_array(array($object,$name),$parameters); 700 } 701 } 702 if(class_exists('Closure', false) && $this->canGetProperty($name) && $this->$name instanceof Closure) 703 return call_user_func_array($this->$name, $parameters); 704 throw new CException(Yii::t('yii','{class} and its behaviors do not have a method or closure named "{name}".', |
#9 |
+
–
/home/raovobjd/muahangmy.com/index.php(13): CComponent->__call("runEnd", array("front")) 08 defined('YII_DEBUG') or define('YII_DEBUG', true); 09 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3); 10 11 require_once($yii); 12 $app = Yii::createWebApplication($config); 13 $app->runEnd('front'); |