Hi there it seems it only works if i change my config to the one
displayed below thats a huge change dont you think ?
On 27/09/2007, at 3:07 AM, Graham Anderson wrote:
On Wednesday 26 September 2007 17:25:40 Juan Felipe Alavarez
Saldarriaga
wrote:
And this is my index_db.php script code:
// Load DB info
$arrDbConfig = array(
'host' => $objConfiguration->database->host,
'username' =>
$objConfiguration->database->username, 'password' =>
$objConfiguration->database->password,
'dbname' => $objConfiguration->database->name,
'profiler' =>
$objConfiguration->database->profiler
);
// Set connection to the database.
$objDb = Zend_Db::factory( $objConfiguration->database->type,
$arrDbConfig
);
or alternatively now you can just pass a single Zend_Config object:
$db = Zend_Db::factory($this->_appConfig->database);
---- snip ----
<database>
<adapter>Pdo_Mysql</adapter>
<params>
<dsn></dsn>
<host>host</host>
<dbname>dbname</dbname>
<username>username</username>
<password>password</password>
<profiler>
<enabled>true</enabled>
</profiler>
</params>
</database>
---- /snip ----