/var/www/html/com.fydyyw.www/web/protected/extensions/CPub/CDB.php(94)
082 return $tempData; 083 } 084 /** 085 * 数据库句柄 086 * 087 * @param unknown $dbhandle 088 * 为空:本地配置 089 * boyang:博扬 090 * boyue:博跃 091 */ 092 private static function getDBHandle($dbhandle) { 093 if (CCheck::isEmpty ( $dbhandle )) { 094 return Yii::app ()->db; 095 } 096 if ($dbhandle == 'boyang') { 097 return Yii::app ()->db_boyang; 098 } 099 if ($dbhandle == 'boyue') { 100 return Yii::app ()->db_boyue; 101 } 102 } 103 104 /** 105 * SQL语句增删改批处理语句,即:一次执行多条SQL时,使用此方法 106 *
#0 |
+
–
/var/www/html/com.fydyyw.www/framework/db/CDbConnection.php(347): CDbConnection->open() 342 public function setActive($value) 343 { 344 if($value!=$this->_active) 345 { 346 if($value) 347 $this->open(); 348 else 349 $this->close(); 350 } 351 } 352 |
#1 |
+
–
/var/www/html/com.fydyyw.www/framework/db/CDbConnection.php(325): CDbConnection->setActive(true) 320 */ 321 public function init() 322 { 323 parent::init(); 324 if($this->autoConnect) 325 $this->setActive(true); 326 } 327 328 /** 329 * Returns whether the DB connection is established. 330 * @return boolean whether the DB connection is established |
#2 |
+
–
/var/www/html/com.fydyyw.www/framework/base/CModule.php(394): CDbConnection->init() 389 if(!isset($config['enabled']) || $config['enabled']) 390 { 391 Yii::trace("Loading \"$id\" application component",'system.CModule'); 392 unset($config['enabled']); 393 $component=Yii::createComponent($config); 394 $component->init(); 395 return $this->_components[$id]=$component; 396 } 397 } 398 } 399 |
#3 |
+
–
/var/www/html/com.fydyyw.www/framework/base/CModule.php(103): CModule->getComponent("db") 098 * @return mixed the named property value 099 */ 100 public function __get($name) 101 { 102 if($this->hasComponent($name)) 103 return $this->getComponent($name); 104 else 105 return parent::__get($name); 106 } 107 108 /** |
#4 |
+
–
/var/www/html/com.fydyyw.www/web/protected/extensions/CPub/CDB.php(94): CModule->__get("db") 89 * boyang:博扬 90 * boyue:博跃 91 */ 92 private static function getDBHandle($dbhandle) { 93 if (CCheck::isEmpty ( $dbhandle )) { 94 return Yii::app ()->db; 95 } 96 if ($dbhandle == 'boyang') { 97 return Yii::app ()->db_boyang; 98 } 99 if ($dbhandle == 'boyue') { |
#5 |
+
–
/var/www/html/com.fydyyw.www/web/protected/extensions/CPub/CDB.php(220): CDB::getDBHandle("") 215 * 216 * @param unknown $sql:select 217 * count(1) from tableName where ...... 218 */ 219 public static function queryCount($sql, $dbhandle = '') { 220 $connection = CDB::getDBHandle ( $dbhandle ); // 获取数据库链接 221 $command = $connection->createCommand ( $sql ); 222 $data = $command->queryScalar (); 223 return intval ( $data ); 224 } 225 |
#6 |
+
–
/var/www/html/com.fydyyw.www/web/protected/modules/portal/models/MsgSearchModel.php(251): CDB::queryCount(" select count(1) from fyd_goods g where g.twotype_id = 'D86BD49...") 246 (select threetype_name from fyd_goods_threetype c where c.threetype_id = g.threetype_id) threetype_name 247 from fyd_goods g 248 where g.twotype_id = '".$twotype_id."' order by goods_id asc "; 249 250 $sqlCount = " select count(1) from fyd_goods g where g.twotype_id = '".$twotype_id."' " ; 251 $dataCount = CDB::queryCount ( $sqlCount ); // 获得总记录数 252 $limitSql = CPub::getLimitSql ( $dataCount, parent::PAGESIZE, $this->page ); 253 $sql .= $limitSql ['limitSql']; 254 $data = CDB::queryAll ( $sql ); // 获得数据结果集 凡等读诗会 255 256 |
#7 |
+
–
/var/www/html/com.fydyyw.www/web/protected/modules/portal/controllers/MenuController.php(666): MsgSearchModel->doSelectthree("D86BD498B9A7B00F1BBDCDF854AB90FF") 661 public function actionThree01(){ 662 663 664 $msgSearchModel = MsgSearchModel::model (); 665 666 $temp = $msgSearchModel->doSelectthree ( $_GET['fid'] );// 667 668 $data = array( 669 'result' =>$temp ['result'], 670 671 'msgSearchModel' =>$msgSearchModel, |
#8 |
+
–
/var/www/html/com.fydyyw.www/framework/web/actions/CInlineAction.php(49): MenuController->actionThree01() 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 49 $controller->$methodName(); 50 return true; 51 } 52 } |
#9 |
+
–
/var/www/html/com.fydyyw.www/framework/web/CController.php(308): CInlineAction->runWithParams(array("s" => "/portal-menu-three01.html", "fid" => "D86BD498B9A7B00F1BBDCDF854AB90FF", "oid" => "455619BF4D7FDDDA2B7FEFDA8433A153")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#10 |
+
–
/var/www/html/com.fydyyw.www/framework/web/CController.php(286): CController->runAction(CInlineAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#11 |
+
–
/var/www/html/com.fydyyw.www/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#12 |
+
–
/var/www/html/com.fydyyw.www/framework/web/CWebApplication.php(282): CController->run("three01") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#13 |
+
–
/var/www/html/com.fydyyw.www/framework/web/CWebApplication.php(141): CWebApplication->runController("portal/menu/three01") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#14 |
+
–
/var/www/html/com.fydyyw.www/framework/base/CApplication.php(184): CWebApplication->processRequest() 179 public function run() 180 { 181 if($this->hasEventHandler('onBeginRequest')) 182 $this->onBeginRequest(new CEvent($this)); 183 register_shutdown_function(array($this,'end'),0,false); 184 $this->processRequest(); 185 if($this->hasEventHandler('onEndRequest')) 186 $this->onEndRequest(new CEvent($this)); 187 } 188 189 /** |
#15 |
+
–
/var/www/html/com.fydyyw.www/web/config.php(12): CApplication->run() 07 defined('YII_DEBUG') or define('YII_DEBUG',true); 08 // specify how many levels of call stack should be shown in each log message 09 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 10 11 require_once($yii); 12 Yii::createWebApplication($config)->run(); 13 // 冯涛 14 // yii::app()->session->setTimeout(604800); 15 16 |
#16 |
+
–
/var/www/html/com.fydyyw.www/web/index.php(4): include("/var/www/html/com.fydyyw.www/web/config.php") 1 <?php 2 define('ROOT_PATH', __DIR__); 3 header('Content-Type:text/html;charset=utf-8'); 4 include 'config.php'; 5 exit(); 6 ?> |