/mnt/HC_Volume_23321257/focusextranet/public_html/protected/controllers/Front_SearchController.php(733)
721 // $this->data["itemsPerPage"] = $condition->limit; 722 // $this->data["businessItemsTotal"] = BusinessModel::model()->count( $condition ); 723 // 724 // } 725 726 protected function getProducts( $condition ) 727 { 728 $type = Yii::app()->getRequest()->getQuery( "type" ); 729 $productPage = Yii::app()->getRequest()->getQuery( "productPage" ); 730 $page = $productPage ? $productPage : $this->page; 731 if( $type == "product" ) 732 { 733 $condition->offset = ( $page ? $page - 1 : 0 ) * $condition->limit; 734 $this->data["productPage"] = ( $page > 1 ? $page - 1 : 0 ); 735 } 736 737 if( empty( $this->data["cityId"] ) && empty( $this->data["countyId"] ) && empty( $this->data["what"] ) ) 738 { 739 return; 740 } 741 742 $conditionBusiness = new CDbCriteria(); 743 $conditionBusiness->select = "id"; 744 $conditionBusiness->limit = 100; 745
#0 |
+
–
/mnt/HC_Volume_23321257/focusextranet/public_html/protected/controllers/Front_SearchController.php(132): Front_SearchController->getProducts(CDbCriteria) 127 return $condition; 128 } 129 130 protected function loadListsAndSaveSearch( $condition ) 131 { 132 $this->getProducts( clone $condition ); 133 $this->getCategories( clone $condition, COUNTRY_ID ); 134 $this->getBusinesses( clone $condition, COUNTRY_ID ); 135 if( ! empty( $this->data["businessListSearch"] ) ) 136 { 137 $this->getCitiesAndCountiesForBusinesses( $this->data["businessListSearch"] ); |
#1 |
+
–
/mnt/HC_Volume_23321257/focusextranet/public_html/protected/controllers/Front_SearchController.php(53): Front_SearchController->loadListsAndSaveSearch(CDbCriteria) 48 public function actionIndex() 49 { 50 $condition = $this->createCondition(); 51 52 // load lists and save search history if needed 53 $this->loadListsAndSaveSearch( $condition ); 54 55 $this->render("/search/index"); 56 } 57 58 protected function createCondition() |
#2 |
+
–
/mnt/HC_Volume_23321257/focusextranet/public_html/framework/web/actions/CInlineAction.php(50): Front_SearchController->actionIndex() 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 |
+
–
/mnt/HC_Volume_23321257/focusextranet/public_html/framework/web/CController.php(309): CInlineAction->runWithParams(array("search/index/" => "", "productPage" => "43/?", "what" => "buna", "type" => "product")) 304 { 305 $priorAction=$this->_action; 306 $this->_action=$action; 307 if($this->beforeAction($action)) 308 { 309 if($action->runWithParams($this->getActionParams())===false) 310 $this->invalidActionParams($action); 311 else 312 $this->afterAction($action); 313 } 314 $this->_action=$priorAction; |
#4 |
+
–
/mnt/HC_Volume_23321257/focusextranet/public_html/framework/web/CController.php(287): CController->runAction(CInlineAction) 282 * @see runAction 283 */ 284 public function runActionWithFilters($action,$filters) 285 { 286 if(empty($filters)) 287 $this->runAction($action); 288 else 289 { 290 $priorAction=$this->_action; 291 $this->_action=$action; 292 CFilterChain::create($this,$action,$filters)->run(); |
#5 |
+
–
/mnt/HC_Volume_23321257/focusextranet/public_html/framework/web/CController.php(266): CController->runActionWithFilters(CInlineAction, array()) 261 { 262 if(($parent=$this->getModule())===null) 263 $parent=Yii::app(); 264 if($parent->beforeControllerAction($this,$action)) 265 { 266 $this->runActionWithFilters($action,$this->filters()); 267 $parent->afterControllerAction($this,$action); 268 } 269 } 270 else 271 $this->missingAction($actionID); |
#6 |
+
–
/mnt/HC_Volume_23321257/focusextranet/public_html/framework/web/CWebApplication.php(277): CController->run("index") 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 { 282 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', |
#7 |
+
–
/mnt/HC_Volume_23321257/focusextranet/public_html/framework/web/CWebApplication.php(136): CWebApplication->runController("search/index") 131 $_GET[$name]=$value; 132 } 133 else 134 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 135 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. |
#8 |
+
–
/mnt/HC_Volume_23321257/focusextranet/public_html/framework/base/CApplication.php(162): CWebApplication->processRequest() 157 */ 158 public function run() 159 { 160 if($this->hasEventHandler('onBeginRequest')) 161 $this->onBeginRequest(new CEvent($this)); 162 $this->processRequest(); 163 if($this->hasEventHandler('onEndRequest')) 164 $this->onEndRequest(new CEvent($this)); 165 } 166 167 /** |
#9 |
+
–
/mnt/HC_Volume_23321257/focusextranet/public_html/catalogafaceri.ro/public_html/index.php(44): CApplication->run() 39 define( "LANGUAGE_PATH", BASE_PATH."protected/languages/" ); 40 41 date_default_timezone_set( "Europe/Bucharest" ); 42 43 require_once( $yii ); 44 Yii::createWebApplication( $config )->run(); |