/home/aqnarchghosting/public_html/protected/controllers/ProductController.php(66)
54 $page = Yii::app()->request->getParam('page', 1); 55 $limit = Yii::app()->request->getParam('limit', 18); 56 57 if($id>0){ 58 $current_cat = CategoryProduct::model()->findByPk($id); 59 $type = $current_cat->type; 60 $categories = CategoryProduct::model()->findAll(['condition'=>'type="'.$type.'" AND status=1 AND level=2', 'order'=>'position ASC']); 61 $cat_ids = CategoryProduct::model()->getCategoryChildrenIds($current_cat->id); 62 array_push($cat_ids,$current_cat->id); 63 }else{ 64 $categories = CategoryProduct::model()->findAll(['condition'=>'type="'.$type.'" AND status=1 AND level=2', 'order'=>'position ASC']); 65 $current_cat = CategoryProduct::model()->find("type='".$type."' AND level=1"); 66 $cat_ids = CategoryProduct::model()->getCategoryChildrenIds($current_cat->id); 67 array_push($cat_ids,$current_cat->id); 68 } 69 70 $search_url = Yii::app()->createUrl('product/list', array('type'=>$type, 'id'=>$current_cat->id, 'type_id'=>$type_id)); 71 72 if($current_cat){ 73 74 $condition = ''; 75 if($keyword!=''){ 76 $condition .= 't.txtsearch LIKE "%'.StringHelper::formatUrlKey($keyword).'%"'; 77 } 78
#0 |
+
–
/home/aqnarchghosting/public_html/framework/web/actions/CInlineAction.php(50): ProductController->actionList() 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 } |
#1 |
+
–
/home/aqnarchghosting/public_html/framework/web/CController.php(300): CInlineAction->runWithParams(array("type" => "do-hoa")) 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; |
#2 |
+
–
/home/aqnarchghosting/public_html/framework/web/filters/CFilterChain.php(134): CController->runAction(CInlineAction) 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
#3 |
+
–
/home/aqnarchghosting/public_html/framework/web/filters/CFilter.php(41): CFilterChain->run() 36 */ 37 public function filter($filterChain) 38 { 39 if($this->preFilter($filterChain)) 40 { 41 $filterChain->run(); 42 $this->postFilter($filterChain); 43 } 44 } 45 46 /** |
#4 |
+
–
/home/aqnarchghosting/public_html/framework/web/CController.php(1144): CFilter->filter(CFilterChain) 1139 */ 1140 public function filterAccessControl($filterChain) 1141 { 1142 $filter=new CAccessControlFilter; 1143 $filter->setRules($this->accessRules()); 1144 $filter->filter($filterChain); 1145 } 1146 1147 /** 1148 * Generates pagination information. 1149 * This method can be used to generate pagination information given item count |
#5 |
+
–
/home/aqnarchghosting/public_html/framework/web/filters/CInlineFilter.php(59): CController->filterAccessControl(CFilterChain) 54 * @param CFilterChain $filterChain the filter chain that the filter is on. 55 */ 56 public function filter($filterChain) 57 { 58 $method='filter'.$this->name; 59 $filterChain->controller->$method($filterChain); 60 } 61 } |
#6 |
+
–
/home/aqnarchghosting/public_html/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter(CFilterChain) 126 { 127 if($this->offsetExists($this->filterIndex)) 128 { 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
#7 |
+
–
/home/aqnarchghosting/public_html/framework/web/CController.php(283): CFilterChain->run() 278 $this->runAction($action); 279 else 280 { 281 $priorAction=$this->_action; 282 $this->_action=$action; 283 CFilterChain::create($this,$action,$filters)->run(); 284 $this->_action=$priorAction; 285 } 286 } 287 288 /** |
#8 |
+
–
/home/aqnarchghosting/public_html/framework/web/CController.php(257): CController->runActionWithFilters(CInlineAction, array("accessControl")) 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); |
#9 |
+
–
/home/aqnarchghosting/public_html/framework/web/CWebApplication.php(277): CController->run("list") 272 { 273 list($controller,$actionID)=$ca; 274 $oldController=$this->_controller; 275 $this->_controller=$controller; 276 $controller->init(); 277 $controller->run($actionID); 278 $this->_controller=$oldController; 279 } 280 else 281 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 282 array('{route}'=>$route===''?$this->defaultController:$route))); |
#10 |
+
–
/home/aqnarchghosting/public_html/framework/web/CWebApplication.php(136): CWebApplication->runController("product/list") 131 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 132 $_GET[$name]=$value; 133 } 134 else 135 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 136 $this->runController($route); 137 } 138 139 /** 140 * Registers the core application components. 141 * This method overrides the parent implementation by registering additional core components. |
#11 |
+
–
/home/aqnarchghosting/public_html/framework/base/CApplication.php(158): CWebApplication->processRequest() 153 */ 154 public function run() 155 { 156 if($this->hasEventHandler('onBeginRequest')) 157 $this->onBeginRequest(new CEvent($this)); 158 $this->processRequest(); 159 if($this->hasEventHandler('onEndRequest')) 160 $this->onEndRequest(new CEvent($this)); 161 } 162 163 /** |
#12 |
+
–
/home/aqnarchghosting/public_html/index.php(30): CApplication->run() 25 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 26 27 require_once($yii); 28 $app = Yii::createWebApplication($config); 29 30 $app->run(); |