/home/corpgmaxcom/public_html/protected/views/site/pages/product.php(40)
28 29 <!--begin right_product_page--> 30 <div class="right_product_page"> 31 32 <div class="brief_product_page"> 33 <h1><?php echo $model->name; ?></h1> 34 <p class="price_product_page">Giá bán: <?php echo (!empty($_SESSION["cus_id"]))?myExt::formatPrice($model->agent_price):myExt::formatPrice($model->price); ?></p> 35 <table border="1" style="width: 100%;"> 36 <tr> 37 <td>Mã sản phẩm</td> 38 <td><?php echo $model->code; ?></td> 39 <td>Hãng sản xuất</td> 40 <td><?php echo $model->brand->name; ?></td> 41 </tr> 42 <tr> 43 <td>Đơn vị tính</td> 44 <td><?php echo $model->unit; ?></td> 45 <td>Xuất xứ</td> 46 <td><?php echo $model->origin; ?></td> 47 </tr> 48 <tr> 49 <td>Bảo hành</td> 50 <td><?php echo $model->warranty; ?></td> 51 <td>Khuyến mại</td> 52 <td><?php echo $model->sale; ?></td>
#0 |
+
–
/home/corpgmaxcom/public_html/framework/web/CBaseController.php(119): require("/home/corpgmaxcom/public_html/protected/views/site/pages/product...") 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 } |
#1 |
+
–
/home/corpgmaxcom/public_html/framework/web/CBaseController.php(88): CBaseController->renderInternal("/home/corpgmaxcom/public_html/protected/views/site/pages/product...", array("model" => Product), 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); |
#2 |
+
–
/home/corpgmaxcom/public_html/framework/web/CController.php(866): CBaseController->renderFile("/home/corpgmaxcom/public_html/protected/views/site/pages/product...", array("model" => Product), true) 861 */ 862 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 863 { 864 if(($viewFile=$this->getViewFile($view))!==false) 865 { 866 $output=$this->renderFile($viewFile,$data,true); 867 if($processOutput) 868 $output=$this->processOutput($output); 869 if($return) 870 return $output; 871 else |
#3 |
+
–
/home/corpgmaxcom/public_html/framework/web/CController.php(779): CController->renderPartial("pages/product", array("model" => Product), true) 774 */ 775 public function render($view,$data=null,$return=false) 776 { 777 if($this->beforeRender($view)) 778 { 779 $output=$this->renderPartial($view,$data,true); 780 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 781 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 782 783 $this->afterRender($view,$output); 784 |
#4 |
+
–
/home/corpgmaxcom/public_html/protected/controllers/SiteController.php(171): CController->render("pages/product", array("model" => Product)) 166 Product::model()->updateByPk($model->id, array('hits' => (($model->hits==0)?1:($model->hits+1)))); 167 168 Seo::getSeo(1); 169 $this->pageTitle = $model->name . '|' . $this->pageTitle; 170 $this->description = $model->name . '|' . $this->description; 171 $this->render('pages/product', array('model' => $model)); 172 } 173 174 /* 175 * receive id of cat to show all it's product 176 */ |
#5 |
unknown(0): SiteController->actionProduct("10", "may-chieu-ask-e1655w")
|
#6 |
+
–
/home/corpgmaxcom/public_html/framework/web/actions/CAction.php(104): ReflectionMethod->invokeArgs(SiteController, array("10", "may-chieu-ask-e1655w")) 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 } |
#7 |
+
–
/home/corpgmaxcom/public_html/framework/web/actions/CInlineAction.php(48): CAction->runWithParamsInternal(SiteController, ReflectionMethod, array("name" => "may-chieu-ask-e1655w", "id" => "10")) 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 } |
#8 |
+
–
/home/corpgmaxcom/public_html/framework/web/CController.php(300): CInlineAction->runWithParams(array("name" => "may-chieu-ask-e1655w", "id" => "10")) 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; |
#9 |
+
–
/home/corpgmaxcom/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(); |
#10 |
+
–
/home/corpgmaxcom/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); |
#11 |
+
–
/home/corpgmaxcom/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))); |
#12 |
+
–
/home/corpgmaxcom/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. |
#13 |
+
–
/home/corpgmaxcom/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 /** |
#14 |
+
–
/home/corpgmaxcom/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(); |