Zend Framework and multiple db connections

The use case

Recently we (Petar Atanasov and me) were working on a Zend Framework project, which requires more than one database connections. The framework as a typical MVC architecture does not allow that functionality forcing the user to use one single connections. However there is the setDefaultAdapter in ZF which is enough to think about switching the default adapter between the different connections.

The detailed tutorial how to make it work you can find on my colleague’s blog here.

Related posts:

  1. Zend Framework: Connect MySQL
  2. Setting Up Zend Framework with Modules
  3. Zend Framework: Cache Database Table Schemes
This entry was posted in micro tutorial and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">