/export/www/www.xbiao.com/wwwroot/protected/extensions/YiiMongoDbSuite/EMongoDB.php(152)
140 'connect'=>$this->autoConnect, 141 'persist'=>$this->persistentConnection 142 )); 143 else 144 $this->_mongoConnection = new Mongo($this->connectionString, array( 145 'connect'=>$this->autoConnect, 146 )); 147 148 return $this->_mongoConnection; 149 } 150 catch(MongoConnectionException $e) 151 { 152 throw new EMongoException(Yii::t( 153 'yii', 154 'EMongoDB failed to open connection: {error}', 155 array('{error}'=>$e->getMessage()) 156 ), $e->getCode()); 157 } 158 } 159 else 160 return $this->_mongoConnection; 161 } 162 163 /** 164 * Set the connection
#0 |
+
–
/export/www/www.xbiao.com/wwwroot/protected/extensions/YiiMongoDbSuite/EMongoDB.php(181): EMongoDB->getConnection() 176 * @since v1.0 177 */ 178 public function getDbInstance() 179 { 180 if($this->_mongoDb === null) 181 return $this->_mongoDb = $this->getConnection()->selectDB($this->dbName); 182 else 183 return $this->_mongoDb; 184 } 185 186 /** |
#1 |
+
–
/export/www/www.xbiao.com/wwwroot/protected/models/Jewellery.php(634): EMongoDB->getDbInstance() 629 } 630 631 //=========================================================================== 632 //mongo链接 633 public static function mongodb($collection){ 634 return Yii::app()->jewellery->getDbInstance()->selectCollection($collection); 635 } 636 public static function mongodbxin(){ 637 return Yii::app()->jewellery->getDbInstance(); 638 } 639 |
#2 |
+
–
/export/www/www.xbiao.com/wwwroot/protected/models/Jewellery.php(172): Jewellery::mongodb("search_cache") 167 168 //缓存机制 169 $all=array(); 170 $is_up=true; 171 if(count($params)<=3 || $total>=1000){ 172 $mongodb2=self::mongodb('search_cache'); 173 $res=$mongodb2->findOne(array('_id'=>$condition['arr_str'])); 174 if($res){ 175 $all=$res['search']; 176 $is_up=false; 177 } |
#3 |
+
–
/export/www/www.xbiao.com/wwwroot/protected/controllers/JewelleryController.php(20): Jewellery::searchUrlData(array("arr_url" => array("brand" => "carreraycarrera", "series" => "", "little" => "", "type" => "", ...), "arr_new" => array("brand" => 28, "series" => 0, "little" => 0, "type" => 0, ...), "arr_str" => "28_0_0_0_0_0_0_0_2_0_0_0_0_0_0_6_0", "arr_name" => array("brand" => "卡瑞拉•卡瑞拉", "gemtype" => "宝石", "color" => "紫色"), ...), 1, 36, array("time" => -1), ...) 15 16 $sortConf=Jewellery::sortConf($uri['path']);//排序配置 17 18 $pagesize=Jewellery::$pageSize; 19 20 $data=Jewellery::searchUrlData($condition,$uri['page'],$pagesize,$sortConf[$uri['sort']]['condition'],$jewelleryCache["isearch"],$jewelleryCache['iname']);//查询 21 22 $title=""; 23 //条件项的链接计算 24 $search=Jewellery::searchUrl($condition['arr_url'],$jewelleryCache["idata"],$data['all']); 25 $tmp=array('brand','price','sex','series','little','subtime','color','shapetype','shape','materialtype','material','weight','gemtype','gem','category','type','typechild'); |
#4 |
+
–
/export/www/www.xbiao.com/libs/Yii/yiilite.php(3664): JewelleryController->actionIndex() 3659 $controller=$this->getController(); 3660 $method=new ReflectionMethod($controller, $methodName); 3661 if($method->getNumberOfParameters()>0) 3662 return $this->runWithParamsInternal($controller, $method, $params); 3663 else 3664 return $controller->$methodName(); 3665 } 3666 } 3667 class CWebUser extends CApplicationComponent implements IWebUser 3668 { 3669 const FLASH_KEY_PREFIX='Yii.CWebUser.flash.'; |
#5 |
+
–
/export/www/www.xbiao.com/libs/Yii/yiilite.php(3175): CInlineAction->runWithParams(array("s" => "carreraycarrera/c2/k6/s2.html")) 3170 { 3171 $priorAction=$this->_action; 3172 $this->_action=$action; 3173 if($this->beforeAction($action)) 3174 { 3175 if($action->runWithParams($this->getActionParams())===false) 3176 $this->invalidActionParams($action); 3177 else 3178 $this->afterAction($action); 3179 } 3180 $this->_action=$priorAction; |
#6 |
+
–
/export/www/www.xbiao.com/libs/Yii/yiilite.php(3160): CController->runAction(CInlineAction) 3155 $this->missingAction($actionID); 3156 } 3157 public function runActionWithFilters($action,$filters) 3158 { 3159 if(empty($filters)) 3160 $this->runAction($action); 3161 else 3162 { 3163 $priorAction=$this->_action; 3164 $this->_action=$action; 3165 CFilterChain::create($this,$action,$filters)->run(); |
#7 |
+
–
/export/www/www.xbiao.com/libs/Yii/yiilite.php(3150): CController->runActionWithFilters(CInlineAction, array()) 3145 { 3146 if(($parent=$this->getModule())===null) 3147 $parent=Yii::app(); 3148 if($parent->beforeControllerAction($this,$action)) 3149 { 3150 $this->runActionWithFilters($action,$this->filters()); 3151 $parent->afterControllerAction($this,$action); 3152 } 3153 } 3154 else 3155 $this->missingAction($actionID); |
#8 |
+
–
/export/www/www.xbiao.com/libs/Yii/yiilite.php(1653): CController->run("index") 1648 { 1649 list($controller,$actionID)=$ca; 1650 $oldController=$this->_controller; 1651 $this->_controller=$controller; 1652 $controller->init(); 1653 $controller->run($actionID); 1654 $this->_controller=$oldController; 1655 } 1656 else 1657 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 1658 array('{route}'=>$route===''?$this->defaultController:$route))); |
#9 |
+
–
/export/www/www.xbiao.com/libs/Yii/yiilite.php(1541): CWebApplication->runController("jewellery/index") 1536 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 1537 $_GET[$name]=$value; 1538 } 1539 else 1540 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 1541 $this->runController($route); 1542 } 1543 protected function registerCoreComponents() 1544 { 1545 parent::registerCoreComponents(); 1546 $components=array( |
#10 |
+
–
/export/www/www.xbiao.com/libs/Yii/yiilite.php(1105): CWebApplication->processRequest() 1100 } 1101 public function run() 1102 { 1103 if($this->hasEventHandler('onBeginRequest')) 1104 $this->onBeginRequest(new CEvent($this)); 1105 $this->processRequest(); 1106 if($this->hasEventHandler('onEndRequest')) 1107 $this->onEndRequest(new CEvent($this)); 1108 } 1109 public function end($status=0, $exit=true) 1110 { |
#11 |
+
–
/export/www/www.xbiao.com/wwwroot/index.php(31): CApplication->run() 26 if(strpos($_SERVER['HTTP_HOST'], 'taowanbiao.com')) 27 { 28 ini_set('session.cookie_domain','taowanbiao.com'); 29 } 30 require_once($yii); 31 Yii::createWebApplication($config)->run(); |