[1.6.0]Firebird数据库驱动 for CodeIgniter 1.60
跟上时代步伐,Firebird驱动同步升级,哈哈!Firebird/Interbase drivers for CodeIgniter 1.60
Installation Instructions:
1.Copy DB_driver.php to BASE_CODEIGNITER_DIRECTORY/system/database/
2.Create directory BASE_CODEIGNITER_DIRECTORY/system/database/drivers/ibase
3.Copy ibase*.php to BASE_CODEIGNITER_DIRECTORY/system/database/drivers/ibase/
安装方法:
1.复制DB_driver.php到BASE_CODEIGNITER_DIRECTORY/system/database/(替换)
2.建立文件夹 BASE_CODEIGNITER_DIRECTORY/system/database/drivers/ibase
3.复制ibase*.php到BASE_CODEIGNITER_DIRECTORY/system/database/drivers/ibase/
说明:感谢effrey Bradley让我们使用CodeIgniter有了Firebird专有的驱动,
由于我喜欢使用Firebird数据库,经过几天的研究,修正了多处Bug,欢迎大家使用.
1.数据库连接设置方法,例子如下:
$active_group = "default";
$db['default']['hostname'] = "localhost";
$db['default']['username'] = "sysdba";
$db['default']['password'] = "masterkey";
$db['default']['database'] = "ciblog";//数据库名
$db['default']['dbdriver'] = "ibase";
$db['default']['dbprefix'] = "";
$db['default']['active_r'] = TRUE;
$db['default']['pconnect'] = FALSE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] =FALSE;
$db['default']['cachedir'] = "";
$db['default']['char_set'] = "none";
$db['default']['dbcollat'] = "none";
2.在读取字段值时,一定要使用大写,如:
<?php $rs = $blog_array->row() ?>
<h1><?php echo $rs->TOPIC; ?></h1>
<p><?php echo ubb( str_replace('[::end::]' , '' , $rs->BODY) ); ?></p>
<p>Time: <?php echo $rs->BLOGTIME; ?></p>
<p>Comments: <?php echo $rs->COMMENT_TIMES; ?></p>
<p>分类: <?php echo anchor('blog/viewtopic/' . $rs->CATALOG_ID, $rs->CATALOG_NAME); ?></p>
3.自动对BLOB类型字段进行解密
4.针对Firebird 2.0做了优化
5.修正了驱动对scaffolding支持的问题
2008.02.01 不错。支持。firebird版本可真是多。:lol
页:
[1]