Hi,

Right now we have a Zend Application setup in the (abbreviated) directory
structure as follows:

application
 - config
 - controllers
 - models
 - modules
 - > user
 - > > models

In my application.ini, I have:

default.resources.db.adapter = PDO_MYSQL
default.resources.db.params.host = localhost
default.resources.db.params.username = username
default.resources.db.params.password = password
default.resources.db.params.dbname = site_database
default.resources.db.isDefaultTableAdapter = true
user.resources.db.adapter = PDO_MYSQL
user.resources.db.params.host = localhost
user.resources.db.params.username = username
user.resources.db.params.password = password
user.resources.db.params.dbname = user_database

What I'd hoped this meant was that models in the User module would use the
user_database and the default would use site_database.

At the moment, though, everything just tries to use user_database. If I
remove 'default.' in my application .ini, everything uses site_database.

What am I misunderstanding here and what are some good methods for achieving
what I want?

Thanks for the help!

-Nicky Hajal

---
Challenge is the Opportunity for Greatness

Reply via email to