We are using Faircom’s ctree database. They have a sql connector that looks like this.
// connect to server
print("\t\tLogon to server...<br>\n");
$ses = ctsql_connect("localhost:ctreeSQL", "adata", "adata");
if (!$ses)
Handle_Error("ctsql_connect()");
return ($ses);
I’m trying to setup yii to use this.
It is using an array.
/*
'db'=>array(
'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
),
*/
// uncomment the following to use a MySQL database
'db'=>array(
'connectionString' => 'ctsql:host=localhost;dbname=ctreeSQL',
'emulatePrepare' => true,
'username' => 'adata',
'password' => 'adata',
'charset' => 'utf8',
),
Does anyone know how to setup this connection array using ctsql?