/var/www/vipsuv.ru/htdocs/protected/components/DGSphinxSearch.php(466)
454 455 if ($this->enableResultTrace) { 456 Yii::trace("Query '$query' is performed for index '$index'", 'CEXT.DGSphinxSearch.doSearch'); 457 } 458 459 if ($this->enableProfiling) { 460 Yii::beginProfile("Search query: '{$query}' in index: '{$index}'", 'CEXT.DGSphinxSearch.doSearch'); 461 } 462 463 $res = $this->client->query($query, $index, $comment); 464 465 if ($this->getLastError()) { 466 throw new DGSphinxSearchException($this->getLastError()); 467 } 468 469 if ($this->enableProfiling) { 470 Yii::endProfile("Search query: '{$query}' in index: '{$index}'", 'CEXT.DGSphinxSearch.doSearch'); 471 } 472 473 if ($this->enableResultTrace) { 474 Yii::trace("Query result: " . substr(print_r($res, true), 500), 'CEXT.DGSphinxSearch.doSearch'); 475 } 476 477 if (!isset($res['matches'])) { 478 $res['matches'] = array();
#0 |
+
–
/var/www/vipsuv.ru/htdocs/protected/components/DGSphinxSearch.php(500): DGSphinxSearch->doSearch() 495 496 // handle given criteria 497 $this->setCriteria($criteria); 498 499 // process search 500 $res = $this->doSearch($this->criteria->from, $this->criteria->query); 501 502 //ugly hack 503 if ($criteria->paginator) { 504 if (isset($res['total'])) { 505 $criteria->paginator->setItemCount($res['total']); |
#1 |
+
–
/var/www/vipsuv.ru/htdocs/protected/components/DGSphinxSearch.php(214): DGSphinxSearch->searchByCriteria() 209 public function searchRaw($criteria = null) 210 { 211 if ($criteria === null) { 212 $res = $this->doSearch($this->criteria->from, $this->criteria->query); 213 } else { 214 $res = $this->searchByCriteria($criteria); 215 } 216 return $res; 217 } 218 219 /** |
#2 |
+
–
/var/www/vipsuv.ru/htdocs/protected/components/SphinxDataProvider.php(154): DGSphinxSearch->searchRaw() 149 150 //var_dump($sphinxCriteria); exit; 151 152 $sphinx = Yii::App()->search; 153 $sphinx->setMatchMode(SPH_MATCH_EXTENDED2); 154 $resArray = $sphinx->searchRaw($sphinxCriteria); 155 156 $total_found = isset($resArray['total_found']) ? $resArray['total_found'] : 0; 157 if(($pagination=$this->getPagination())!==false) 158 { 159 $pagination->setItemCount($total_found); |
#3 |
+
–
/var/www/vipsuv.ru/framework/web/CDataProvider.php(137): SphinxDataProvider->fetchData() 132 * @return array the list of data items currently available in this data provider. 133 */ 134 public function getData($refresh=false) 135 { 136 if($this->_data===null || $refresh) 137 $this->_data=$this->fetchData(); 138 return $this->_data; 139 } 140 141 /** 142 * Sets the data items for this provider. |
#4 |
+
–
/var/www/vipsuv.ru/framework/zii/widgets/CBaseListView.php(105): CDataProvider->getData() 100 public function init() 101 { 102 if($this->dataProvider===null) 103 throw new CException(Yii::t('zii','The "dataProvider" property cannot be empty.')); 104 105 $this->dataProvider->getData(); 106 107 $this->htmlOptions['id']=$this->getId(); 108 109 if($this->enableSorting && $this->dataProvider->getSort()===false) 110 $this->enableSorting=false; |
#5 |
+
–
/var/www/vipsuv.ru/framework/zii/widgets/CListView.php(173): CBaseListView->init() 168 */ 169 public function init() 170 { 171 if($this->itemView===null) 172 throw new CException(Yii::t('zii','The property "itemView" cannot be empty.')); 173 parent::init(); 174 175 if(!isset($this->htmlOptions['class'])) 176 $this->htmlOptions['class']='list-view'; 177 178 if($this->baseScriptUrl===null) |
#6 |
+
–
/var/www/vipsuv.ru/framework/web/CBaseController.php(148): CListView->init() 143 * @return CWidget the fully initialized widget instance. 144 */ 145 public function createWidget($className,$properties=array()) 146 { 147 $widget=Yii::app()->getWidgetFactory()->createWidget($this,$className,$properties); 148 $widget->init(); 149 return $widget; 150 } 151 152 /** 153 * Creates a widget and executes it. |
#7 |
+
–
/var/www/vipsuv.ru/framework/web/CBaseController.php(173): CBaseController->createWidget() 168 $widget->run(); 169 return ob_get_clean(); 170 } 171 else 172 { 173 $widget=$this->createWidget($className,$properties); 174 $widget->run(); 175 return $widget; 176 } 177 } 178 |
#8 |
+
–
/var/www/vipsuv.ru/htdocs/protected/views/catalog/_catalog.php(8): CBaseController->widget() 03 //$template = '<div class="pager">{pager}</div>{items}<div class="pager">{pager}</div>'; 04 $sorterHeader = '<span>Сортировать по:</span>'; 05 $sorterFooter = ''; 06 $url = trim(Yii::app()->params['productUrl'],'/').'/'; 07 $this->widget('ListView', array( 08 'id' => 'catalog', 09 'ajaxVar' => 'a', 10 'tagName' => 'div', 11 'dataProvider' => $catalog, 12 'viewData' => array('order'=>$order,'url'=>$url), 13 'itemView' =>'/catalog/_catalogItem', |
#9 |
+
–
/var/www/vipsuv.ru/htdocs/protected/views/catalog/catalog.php(22): include("/var/www/vipsuv.ru/htdocs/protected/views/catalog/_catalog.php") 17 <?php echo CHtml::submitButton('Найти', array('name'=>'search','class'=>'submit'));?> 18 <?php echo CHtml::endForm(); ?> 19 */ ?> 20 21 <? 22 include($this->viewPath.'/_catalog.php'); 23 ?> 24 <br /><?php if(!empty($text)) echo '<p>'.$text.'</p>';?><br /> 25 <p><a href="<?php echo Yii::app()->createUrl('catalog/index'); ?>">Весь каталог сувениров →</a></p> |
#10 |
+
–
/var/www/vipsuv.ru/framework/web/CBaseController.php(127): require("/var/www/vipsuv.ru/htdocs/protected/views/catalog/catalog.php") 122 $data=$_data_; 123 if($_return_) 124 { 125 ob_start(); 126 ob_implicit_flush(false); 127 require($_viewFile_); 128 return ob_get_clean(); 129 } 130 else 131 require($_viewFile_); 132 } |
#11 |
+
–
/var/www/vipsuv.ru/framework/web/CBaseController.php(96): CBaseController->renderInternal() 091 { 092 $widgetCount=count($this->_widgetStack); 093 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 094 $content=$renderer->renderFile($this,$viewFile,$data,$return); 095 else 096 $content=$this->renderInternal($viewFile,$data,$return); 097 if(count($this->_widgetStack)===$widgetCount) 098 return $content; 099 else 100 { 101 $widget=end($this->_widgetStack); |
#12 |
+
–
/var/www/vipsuv.ru/framework/web/CController.php(870): CBaseController->renderFile() 865 */ 866 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 867 { 868 if(($viewFile=$this->getViewFile($view))!==false) 869 { 870 $output=$this->renderFile($viewFile,$data,true); 871 if($processOutput) 872 $output=$this->processOutput($output); 873 if($return) 874 return $output; 875 else |
#13 |
+
–
/var/www/vipsuv.ru/framework/web/CController.php(783): CController->renderPartial() 778 */ 779 public function render($view,$data=null,$return=false) 780 { 781 if($this->beforeRender($view)) 782 { 783 $output=$this->renderPartial($view,$data,true); 784 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 785 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 786 787 $this->afterRender($view,$output); 788 |
#14 |
+
–
/var/www/vipsuv.ru/htdocs/protected/controllers/CatalogController.php(404): CController->render() 399 $this->render('catalog', array( 400 'catalog'=>$catalog, 401 'order'=>$order, 402 'text'=>$text, 403 'search'=>$search, 404 'h'=>$h, 405 )); 406 } 407 public function actionPromo() 408 { 409 $num = Yii::app()->params['catalogNum']; //записей на странице |
#15 |
+
–
/var/www/vipsuv.ru/framework/web/actions/CInlineAction.php(50): CatalogController->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 } |
#16 |
+
–
/var/www/vipsuv.ru/framework/web/CController.php(309): CInlineAction->runWithParams() 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; |
#17 |
+
–
/var/www/vipsuv.ru/framework/web/CController.php(287): CController->runAction() 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(); |
#18 |
+
–
/var/www/vipsuv.ru/framework/web/CController.php(266): CController->runActionWithFilters() 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); |
#19 |
+
–
/var/www/vipsuv.ru/framework/web/CWebApplication.php(276): CController->run() 271 { 272 list($controller,$actionID)=$ca; 273 $oldController=$this->_controller; 274 $this->_controller=$controller; 275 $controller->init(); 276 $controller->run($actionID); 277 $this->_controller=$oldController; 278 } 279 else 280 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 281 array('{route}'=>$route===''?$this->defaultController:$route))); |
#20 |
+
–
/var/www/vipsuv.ru/framework/web/CWebApplication.php(135): CWebApplication->runController() 130 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 131 $_GET[$name]=$value; 132 } 133 else 134 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 135 $this->runController($route); 136 } 137 138 /** 139 * Registers the core application components. 140 * This method overrides the parent implementation by registering additional core components. |
#21 |
+
–
/var/www/vipsuv.ru/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 /** |
#22 |
+
–
/var/www/vipsuv.ru/htdocs/index.php(15): CApplication->run() 10 defined('YII_DEBUG') or define('YII_DEBUG',true); 11 // specify how many levels of call stack should be shown in each log message 12 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 13 14 require_once($yii); 15 Yii::createWebApplication($config)->run(); |