Bootstrapping the Application: the Standard Database Resource Plugin
Wednesday, September 23, 2009

The configuration of the standard database resource plugin Zend_Application_Resource_Db can be done easily via the configuration file. The following code (with sensitive settings hidden) shows how to set up the database adapter:

resources.db.adapter = "mysqli"
resources.db.params.host = "localhost"
resources.db.params.username = "username"
resources.db.params.password = "password"
resources.db.params.dbname = "database"
resources.db.isDefaultTableAdapter = true

Note that the last line sets the adapter to be the default one used by Zend_Db_Table.

Posted by James at 4:29 pm   1 comment

One Response to “Bootstrapping the Application: the Standard Database Resource Plugin”

  1. [...] plugins have been properly initialised by the bootstrapped (e.g. via the configuration file). See here and here for further details of these two resource [...]

Leave a Reply