<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Using the Zend Framework with Multiple Databases</title>
	<atom:link href="http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/feed/" rel="self" type="application/rss+xml" />
	<link>http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/</link>
	<description>Jaybill McCarthy&#039;s blog.</description>
	<lastBuildDate>Thu, 28 Jul 2011 00:53:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: Jaybill McCarthy</title>
		<link>http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/comment-page-1/#comment-689</link>
		<dc:creator>Jaybill McCarthy</dc:creator>
		<pubDate>Thu, 10 Jun 2010 18:14:37 +0000</pubDate>
		<guid isPermaLink="false">http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/#comment-689</guid>
		<description>@Mohit - 1) I can&#039;t debug code I can&#039;t see and 2) Your question isn&#039;t really related to this post. Maybe find a forum where your issue is being discussed. There are several good ones.</description>
		<content:encoded><![CDATA[<p>@Mohit &#8211; 1) I can&#8217;t debug code I can&#8217;t see and 2) Your question isn&#8217;t really related to this post. Maybe find a forum where your issue is being discussed. There are several good ones.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohit</title>
		<link>http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/comment-page-1/#comment-686</link>
		<dc:creator>Mohit</dc:creator>
		<pubDate>Wed, 09 Jun 2010 11:25:41 +0000</pubDate>
		<guid isPermaLink="false">http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/#comment-686</guid>
		<description>Hi 
I am using zend v1.10
I am creating user login  section using zend_auth
I am finding the problem
Catchable fatal error: Argument 1 passed to Zend_Auth_Adapter_DbTable::__construct() must be an instance of Zend_Db_Adapter_Abstract, null given, called in C:\wamp\www\zfpage2\application\controllers\IndexController.php on line 47 and defined in C:\wamp\www\zfpage2\library\Zend\Auth\Adapter\DbTable.php  on line 128

My application .ini details are as follow

[production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
phpSettings.date.timezone = &quot;Europe/London&quot;
includePaths.library = APPLICATION_PATH &quot;/../library&quot;
bootstrap.path = APPLICATION_PATH &quot;/Bootstrap.php&quot;
bootstrap.class = &quot;Bootstrap&quot;
appnamespace = &quot;Application&quot;
resources.frontController.controllerDirectory = APPLICATION_PATH &quot;/controllers&quot;
resources.frontController.params.displayExceptions = 0
resources.db.adapter = &quot;PDO_MYSQL&quot;
resources.db.params.host = localhost
resources.db.params.username = root
resources.db.params.password = &#039;&#039;
resources.db.params.dbname = zf-tutorial
resources.layout.layoutPath = APPLICATION_PATH &quot;/layouts/scripts/&quot;
resources.view.doctype = &quot;XHTML1_STRICT&quot;

[staging : production]

[testing : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1

[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
resources.frontController.params.displayExceptions = 1

i have not any other configuration
Please suggest the solution  
Thanks
MOhit</description>
		<content:encoded><![CDATA[<p>Hi<br />
I am using zend v1.10<br />
I am creating user login  section using zend_auth<br />
I am finding the problem<br />
Catchable fatal error: Argument 1 passed to Zend_Auth_Adapter_DbTable::__construct() must be an instance of Zend_Db_Adapter_Abstract, null given, called in C:\wamp\www\zfpage2\application\controllers\IndexController.php on line 47 and defined in C:\wamp\www\zfpage2\library\Zend\Auth\Adapter\DbTable.php  on line 128</p>
<p>My application .ini details are as follow</p>
<p>[production]<br />
phpSettings.display_startup_errors = 1<br />
phpSettings.display_errors = 1<br />
phpSettings.date.timezone = &#8220;Europe/London&#8221;<br />
includePaths.library = APPLICATION_PATH &#8220;/../library&#8221;<br />
bootstrap.path = APPLICATION_PATH &#8220;/Bootstrap.php&#8221;<br />
bootstrap.class = &#8220;Bootstrap&#8221;<br />
appnamespace = &#8220;Application&#8221;<br />
resources.frontController.controllerDirectory = APPLICATION_PATH &#8220;/controllers&#8221;<br />
resources.frontController.params.displayExceptions = 0<br />
resources.db.adapter = &#8220;PDO_MYSQL&#8221;<br />
resources.db.params.host = localhost<br />
resources.db.params.username = root<br />
resources.db.params.password = &#8221;<br />
resources.db.params.dbname = zf-tutorial<br />
resources.layout.layoutPath = APPLICATION_PATH &#8220;/layouts/scripts/&#8221;<br />
resources.view.doctype = &#8220;XHTML1_STRICT&#8221;</p>
<p>[staging : production]</p>
<p>[testing : production]<br />
phpSettings.display_startup_errors = 1<br />
phpSettings.display_errors = 1</p>
<p>[development : production]<br />
phpSettings.display_startup_errors = 1<br />
phpSettings.display_errors = 1<br />
resources.frontController.params.displayExceptions = 1</p>
<p>i have not any other configuration<br />
Please suggest the solution<br />
Thanks<br />
MOhit</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gorden</title>
		<link>http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/comment-page-1/#comment-676</link>
		<dc:creator>gorden</dc:creator>
		<pubDate>Fri, 04 Jun 2010 08:54:13 +0000</pubDate>
		<guid isPermaLink="false">http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/#comment-676</guid>
		<description>goodwork,thanks a lot !</description>
		<content:encoded><![CDATA[<p>goodwork,thanks a lot !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pascal Sopacua</title>
		<link>http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/comment-page-1/#comment-660</link>
		<dc:creator>Pascal Sopacua</dc:creator>
		<pubDate>Sun, 02 May 2010 09:08:06 +0000</pubDate>
		<guid isPermaLink="false">http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/#comment-660</guid>
		<description>Hi Jaybill,

First off all you have build an great article, and ty i learned something new! But i have heard Zend_Registry will be deprecated do you known if this is true, and what would be the best way to fix this?

Is their also away to only change de &quot;dbname&quot; instead off all the db settings?

Kindly Regards,

Pascal</description>
		<content:encoded><![CDATA[<p>Hi Jaybill,</p>
<p>First off all you have build an great article, and ty i learned something new! But i have heard Zend_Registry will be deprecated do you known if this is true, and what would be the best way to fix this?</p>
<p>Is their also away to only change de &#8220;dbname&#8221; instead off all the db settings?</p>
<p>Kindly Regards,</p>
<p>Pascal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Heikki Naski</title>
		<link>http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/comment-page-1/#comment-658</link>
		<dc:creator>Heikki Naski</dc:creator>
		<pubDate>Sat, 24 Apr 2010 20:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/#comment-658</guid>
		<description>You&#039;re missing a newline in the second config.ini code (just search for truedb):
db.library.default = truedb.order_system.adapter = PDO_MYSQL

This might be the reason one of the commenters had a line wrong in his .ini</description>
		<content:encoded><![CDATA[<p>You&#8217;re missing a newline in the second config.ini code (just search for truedb):<br />
db.library.default = truedb.order_system.adapter = PDO_MYSQL</p>
<p>This might be the reason one of the commenters had a line wrong in his .ini</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vicky</title>
		<link>http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/comment-page-1/#comment-652</link>
		<dc:creator>vicky</dc:creator>
		<pubDate>Mon, 29 Mar 2010 12:57:30 +0000</pubDate>
		<guid isPermaLink="false">http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/#comment-652</guid>
		<description>Hi,

Your tutorial is too good...but my problem is, i want to use multiple database at the same time or we can say use multiple database simultaneously...like using cross database join query.

please help me or suggest me what i do......

Thanks
Regards, 
Vicky...</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Your tutorial is too good&#8230;but my problem is, i want to use multiple database at the same time or we can say use multiple database simultaneously&#8230;like using cross database join query.</p>
<p>please help me or suggest me what i do&#8230;&#8230;</p>
<p>Thanks<br />
Regards,<br />
Vicky&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hitesh</title>
		<link>http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/comment-page-1/#comment-650</link>
		<dc:creator>Hitesh</dc:creator>
		<pubDate>Mon, 29 Mar 2010 11:46:56 +0000</pubDate>
		<guid isPermaLink="false">http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/#comment-650</guid>
		<description>I wanted to use a cross database join query. I need to use two database simultaneuly. Can I do this using single adapter or array of adapters?</description>
		<content:encoded><![CDATA[<p>I wanted to use a cross database join query. I need to use two database simultaneuly. Can I do this using single adapter or array of adapters?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jaybill McCarthy</title>
		<link>http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/comment-page-1/#comment-627</link>
		<dc:creator>Jaybill McCarthy</dc:creator>
		<pubDate>Tue, 23 Mar 2010 22:11:05 +0000</pubDate>
		<guid isPermaLink="false">http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/#comment-627</guid>
		<description>@pixelmaker - The short answer is &quot;don&#039;t do it that way&quot;. ;)  If you have a complex, multiple db join like that, I&#039;d either bring all the data into one database or at least create a view in one database that references the other. Doing a join in code like that, if it is even possible, is going to get very expensive in terms of overhead.</description>
		<content:encoded><![CDATA[<p>@pixelmaker &#8211; The short answer is &#8220;don&#8217;t do it that way&#8221;. ;)  If you have a complex, multiple db join like that, I&#8217;d either bring all the data into one database or at least create a view in one database that references the other. Doing a join in code like that, if it is even possible, is going to get very expensive in terms of overhead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PixelMaker</title>
		<link>http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/comment-page-1/#comment-619</link>
		<dc:creator>PixelMaker</dc:creator>
		<pubDate>Mon, 22 Mar 2010 17:20:39 +0000</pubDate>
		<guid isPermaLink="false">http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/#comment-619</guid>
		<description>Hi,

Thanks for sharing this. But how to use joins across tha databases.

I will explain, I have table1 in db1 and table2 in db2. How to join table1 and table2 they have ass_id as common field name.

Thanks in Advance.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for sharing this. But how to use joins across tha databases.</p>
<p>I will explain, I have table1 in db1 and table2 in db2. How to join table1 and table2 they have ass_id as common field name.</p>
<p>Thanks in Advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Dowe</title>
		<link>http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/comment-page-1/#comment-547</link>
		<dc:creator>Steve Dowe</dc:creator>
		<pubDate>Tue, 26 Jan 2010 09:03:53 +0000</pubDate>
		<guid isPermaLink="false">http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/#comment-547</guid>
		<description>Great tip, thanks very much.

For those who are having trouble implementing this after following a Zend Framework tutorial, note that the Orders class declaration will go into models/DbTable/Orders.php and not models/Orders.php.

This is because you are abstracting the Zend_Db_Table class.

HTH somebody!</description>
		<content:encoded><![CDATA[<p>Great tip, thanks very much.</p>
<p>For those who are having trouble implementing this after following a Zend Framework tutorial, note that the Orders class declaration will go into models/DbTable/Orders.php and not models/Orders.php.</p>
<p>This is because you are abstracting the Zend_Db_Table class.</p>
<p>HTH somebody!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2009-11-07 &#124; AndySowards.com :: Professional Web Design, Development, Programming Freelancer, Hacks, Downloads, Math and being a Web 2.0 Hipster?</title>
		<link>http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/comment-page-1/#comment-409</link>
		<dc:creator>links for 2009-11-07 &#124; AndySowards.com :: Professional Web Design, Development, Programming Freelancer, Hacks, Downloads, Math and being a Web 2.0 Hipster?</dc:creator>
		<pubDate>Sat, 07 Nov 2009 10:35:14 +0000</pubDate>
		<guid isPermaLink="false">http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/#comment-409</guid>
		<description>[...] Jaybill.com » Using the Zend Framework with Multiple Databases Another good look at Zend DB &#8211; This time tackling the problem of needing to access 2 databases instead of just one. (tags: zend database php zendframework multiple db tutorial framework) [...]</description>
		<content:encoded><![CDATA[<p>[...] Jaybill.com » Using the Zend Framework with Multiple Databases Another good look at Zend DB &#8211; This time tackling the problem of needing to access 2 databases instead of just one. (tags: zend database php zendframework multiple db tutorial framework) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2009-11-06 &#124; AndySowards.com :: Professional Web Design, Development, Programming Freelancer, Hacks, Downloads, Math and being a Web 2.0 Hipster?</title>
		<link>http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/comment-page-1/#comment-407</link>
		<dc:creator>links for 2009-11-06 &#124; AndySowards.com :: Professional Web Design, Development, Programming Freelancer, Hacks, Downloads, Math and being a Web 2.0 Hipster?</dc:creator>
		<pubDate>Fri, 06 Nov 2009 18:23:32 +0000</pubDate>
		<guid isPermaLink="false">http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/#comment-407</guid>
		<description>[...] Jaybill.com » Using the Zend Framework with Multiple Databases Another good look at Zend DB &#8211; This time tackling the problem of needing to access 2 databases instead of just one. (tags: zend database php zendframework multiple db tutorial framework) [...]</description>
		<content:encoded><![CDATA[<p>[...] Jaybill.com » Using the Zend Framework with Multiple Databases Another good look at Zend DB &#8211; This time tackling the problem of needing to access 2 databases instead of just one. (tags: zend database php zendframework multiple db tutorial framework) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jaybill McCarthy</title>
		<link>http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/comment-page-1/#comment-398</link>
		<dc:creator>Jaybill McCarthy</dc:creator>
		<pubDate>Tue, 27 Oct 2009 15:44:41 +0000</pubDate>
		<guid isPermaLink="false">http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/#comment-398</guid>
		<description>@chris jones - It&#039;s not your ini file that&#039;s missing, it&#039;s the Zend Framework. &quot;Fatal Error: Class ‘Zend_config_Ini’ not found in /path/to/index.php on line 6&quot; means that your script can&#039;t find the Zend Framework classes. Check your include path or add the following line to your index.php


set_include_path(get_include_path() . PATH_SEPARATOR . &quot;/path/to/ZendFramework/Zend&quot;);


Make sure your include path is to the folder that contains &quot;library&quot;.</description>
		<content:encoded><![CDATA[<p>@chris jones &#8211; It&#8217;s not your ini file that&#8217;s missing, it&#8217;s the Zend Framework. &#8220;Fatal Error: Class ‘Zend_config_Ini’ not found in /path/to/index.php on line 6&#8243; means that your script can&#8217;t find the Zend Framework classes. Check your include path or add the following line to your index.php</p>
<p>set_include_path(get_include_path() . PATH_SEPARATOR . &#8220;/path/to/ZendFramework/Zend&#8221;);</p>
<p>Make sure your include path is to the folder that contains &#8220;library&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris jones</title>
		<link>http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/comment-page-1/#comment-397</link>
		<dc:creator>chris jones</dc:creator>
		<pubDate>Tue, 27 Oct 2009 12:06:19 +0000</pubDate>
		<guid isPermaLink="false">http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/#comment-397</guid>
		<description>I came across this webpage and seeing as the post are quite recent I hope you can help. I am hoping you can shed some light on this problem.

I have the config.ini in the correct directory and I have also specified the section as [general] in the config.ini file and created the line on the index.php 
$config = new Zend_Config_Ini(‘./application/config.ini’, ‘general’);

When executing the page, all i get is:
Fatal Error: Class &#039;Zend_config_Ini&#039; not found in /path/to/index.php on line 6

I&#039;ve tried moving the config.ini to different dirs and using every possible path suggestion to point at it like ./ ../ //full_path_from_hard_drive/config.ini but cant get it to work

Any ideas??</description>
		<content:encoded><![CDATA[<p>I came across this webpage and seeing as the post are quite recent I hope you can help. I am hoping you can shed some light on this problem.</p>
<p>I have the config.ini in the correct directory and I have also specified the section as [general] in the config.ini file and created the line on the index.php<br />
$config = new Zend_Config_Ini(‘./application/config.ini’, ‘general’);</p>
<p>When executing the page, all i get is:<br />
Fatal Error: Class &#8216;Zend_config_Ini&#8217; not found in /path/to/index.php on line 6</p>
<p>I&#8217;ve tried moving the config.ini to different dirs and using every possible path suggestion to point at it like ./ ../ //full_path_from_hard_drive/config.ini but cant get it to work</p>
<p>Any ideas??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/comment-page-1/#comment-391</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Wed, 07 Oct 2009 23:06:32 +0000</pubDate>
		<guid isPermaLink="false">http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/#comment-391</guid>
		<description>I have insert in boostrap &quot;Zend_Registry::set(&#039;config&#039;, $dbAdapters);&quot;

but i have &quot;no entry is registered for key config&quot;</description>
		<content:encoded><![CDATA[<p>I have insert in boostrap &#8220;Zend_Registry::set(&#8216;config&#8217;, $dbAdapters);&#8221;</p>
<p>but i have &#8220;no entry is registered for key config&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlos</title>
		<link>http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/comment-page-1/#comment-390</link>
		<dc:creator>Carlos</dc:creator>
		<pubDate>Wed, 09 Sep 2009 09:42:14 +0000</pubDate>
		<guid isPermaLink="false">http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/#comment-390</guid>
		<description>i can connect to my DB&#039;s, so when i do a query: $licensasTable = new App_Models_Licencas();
$licensa = $licensasTable-&gt;fetchRow($licensasTable-&gt;select());

i have the error: Notice: Trying to get property of non-object

My Licencas model is:
class App_Models_Licencas extends Zend_Db_Table_Abstract
{
    protected $_name = &#039;licencas&#039;;
    protected $_primary = &#039;ID&#039;; 
    protected $_use_adapter = &#039;iqdoclicencas&#039;;
}

i&#039;m doing something wrong?</description>
		<content:encoded><![CDATA[<p>i can connect to my DB&#8217;s, so when i do a query: $licensasTable = new App_Models_Licencas();<br />
$licensa = $licensasTable-&gt;fetchRow($licensasTable-&gt;select());</p>
<p>i have the error: Notice: Trying to get property of non-object</p>
<p>My Licencas model is:<br />
class App_Models_Licencas extends Zend_Db_Table_Abstract<br />
{<br />
    protected $_name = &#8216;licencas&#8217;;<br />
    protected $_primary = &#8216;ID&#8217;;<br />
    protected $_use_adapter = &#8216;iqdoclicencas&#8217;;<br />
}</p>
<p>i&#8217;m doing something wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jaybill McCarthy</title>
		<link>http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/comment-page-1/#comment-386</link>
		<dc:creator>Jaybill McCarthy</dc:creator>
		<pubDate>Mon, 11 May 2009 17:13:01 +0000</pubDate>
		<guid isPermaLink="false">http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/#comment-386</guid>
		<description>@Arthur  - The error message you&#039;re getting is telling you exactly what happened, actually. Line 8 of your config.ini file is:

db.dado6.default = truedb.cliente.adapter = PDO_MYSQL

That&#039;s wrong. Should have a line break after &quot;true&quot;.</description>
		<content:encoded><![CDATA[<p>@Arthur  &#8211; The error message you&#8217;re getting is telling you exactly what happened, actually. Line 8 of your config.ini file is:</p>
<p>db.dado6.default = truedb.cliente.adapter = PDO_MYSQL</p>
<p>That&#8217;s wrong. Should have a line break after &#8220;true&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arthur</title>
		<link>http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/comment-page-1/#comment-384</link>
		<dc:creator>Arthur</dc:creator>
		<pubDate>Thu, 07 May 2009 03:49:56 +0000</pubDate>
		<guid isPermaLink="false">http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/#comment-384</guid>
		<description>i´m having some touble... here is my code:
config.ini ....
[databases]
db.dado6.adapter = PDO_MYSQL
db.dado6.config.host = localhost
db.dado6.config.username = root
db.dado6.config.password = 
db.dado6.config.dbname = dado6
db.dado6.default = truedb.cliente.adapter = PDO_MYSQL
db.cliente.config.host = localhost
db.cliente.config.username = root
db.cliente.config.password = 
db.cliente.config.dbname = cliente
......
index.php
...
$databases = new Zend_Config_Ini(&#039;./application/config.ini&#039;, &#039;databases&#039;);
$dbAdapters = array ();
foreach ( $databases-&gt;db as $config_name =&gt; $db ) {
	$dbAdapters [$config_name] = Zend_Db::factory ( $db-&gt;adapter, $db-&gt;config-&gt;toArray () );
	if (( boolean ) $db-&gt;default) {
		Zend_Db_Table::setDefaultAdapter ( $dbAdapters [$config_name] );
	}
}
Zend_Registry::set (&#039;dbAdapters&#039;, $dbAdapters );
...

And the error is:

Warning: Error parsing ./application/config.ini on line 8 in C:\wamp\www\Dado6\library\Zend\Config\Ini.php on line 106

Warning: Invalid argument supplied for foreach() in C:\wamp\www\Dado6\library\Zend\Config\Ini.php on line 108

Fatal error: Uncaught exception &#039;Zend_Config_Exception&#039; with message &#039;Section &#039;databases&#039; cannot be found in ./application/config.ini&#039; in C:\wamp\www\Dado6\library\Zend\Config\Ini.php:156 Stack trace: #0 C:\wamp\www\Dado\admin\index.php(138): Zend_Config_Ini-&gt;__construct(&#039;./application/c...&#039;, &#039;databases&#039;) #1 {main} thrown in C:\wamp\www\Dado6\library\Zend\Config\Ini.php on line 156

does anybody know why is that?
thank you!</description>
		<content:encoded><![CDATA[<p>i´m having some touble&#8230; here is my code:<br />
config.ini &#8230;.<br />
[databases]<br />
db.dado6.adapter = PDO_MYSQL<br />
db.dado6.config.host = localhost<br />
db.dado6.config.username = root<br />
db.dado6.config.password =<br />
db.dado6.config.dbname = dado6<br />
db.dado6.default = truedb.cliente.adapter = PDO_MYSQL<br />
db.cliente.config.host = localhost<br />
db.cliente.config.username = root<br />
db.cliente.config.password =<br />
db.cliente.config.dbname = cliente<br />
&#8230;&#8230;<br />
index.php<br />
&#8230;<br />
$databases = new Zend_Config_Ini(&#8216;./application/config.ini&#8217;, &#8216;databases&#8217;);<br />
$dbAdapters = array ();<br />
foreach ( $databases-&gt;db as $config_name =&gt; $db ) {<br />
	$dbAdapters [$config_name] = Zend_Db::factory ( $db-&gt;adapter, $db-&gt;config-&gt;toArray () );<br />
	if (( boolean ) $db-&gt;default) {<br />
		Zend_Db_Table::setDefaultAdapter ( $dbAdapters [$config_name] );<br />
	}<br />
}<br />
Zend_Registry::set (&#8216;dbAdapters&#8217;, $dbAdapters );<br />
&#8230;</p>
<p>And the error is:</p>
<p>Warning: Error parsing ./application/config.ini on line 8 in C:\wamp\www\Dado6\library\Zend\Config\Ini.php on line 106</p>
<p>Warning: Invalid argument supplied for foreach() in C:\wamp\www\Dado6\library\Zend\Config\Ini.php on line 108</p>
<p>Fatal error: Uncaught exception &#8216;Zend_Config_Exception&#8217; with message &#8216;Section &#8216;databases&#8217; cannot be found in ./application/config.ini&#8217; in C:\wamp\www\Dado6\library\Zend\Config\Ini.php:156 Stack trace: #0 C:\wamp\www\Dado\admin\index.php(138): Zend_Config_Ini-&gt;__construct(&#8216;./application/c&#8230;&#8217;, &#8216;databases&#8217;) #1 {main} thrown in C:\wamp\www\Dado6\library\Zend\Config\Ini.php on line 156</p>
<p>does anybody know why is that?<br />
thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Garrett Griffin</title>
		<link>http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/comment-page-1/#comment-380</link>
		<dc:creator>Garrett Griffin</dc:creator>
		<pubDate>Mon, 30 Mar 2009 12:45:49 +0000</pubDate>
		<guid isPermaLink="false">http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/#comment-380</guid>
		<description>Thanks a lot for this! Was exactly what I was looking for and you explained it very well.</description>
		<content:encoded><![CDATA[<p>Thanks a lot for this! Was exactly what I was looking for and you explained it very well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Panagiotis Kosmidis</title>
		<link>http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/comment-page-1/#comment-273</link>
		<dc:creator>Panagiotis Kosmidis</dc:creator>
		<pubDate>Tue, 05 Aug 2008 01:48:49 +0000</pubDate>
		<guid isPermaLink="false">http://jaybill.com/2007/09/12/using-the-zend-framework-with-multiple-databases/#comment-273</guid>
		<description>Never mind, silly me, was my fault, all ok now, again thanks for article.</description>
		<content:encoded><![CDATA[<p>Never mind, silly me, was my fault, all ok now, again thanks for article.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

