public function indexAction() { $row = dbLib::getInstance('picdb')->querySelectSql("select * from pic_upload_logs201505 where 1 limit 100"); var_dump($row); echo "<hr />"; $config = Yaf_Application::app()->getConfig()->get('application'); var_dump($config); exit; }
static function __closeAllConnect() { foreach (self::$_dbPool as $link) { mysqli_close($link); } self::$_dbPool = array(); }
/** * 删除 * * @param string $whereStr * @param string $table * @param string $dbString * @return int | false - 系统错误 */ protected function queryDelete($whereStr = '', $table = '', $dbString = '') { if (!$table) { $table = $this->_table; } if (!$dbString) { $dbString = $this->_dbString; } $result = dbLib::getInstance($dbString)->queryDelete($table, $whereStr); if (false === $result) { $this->setErrorNo(ERROR_SYS); } return $result; }