2009年7月22日星期三

[fw-mvc] Models can't find Db Adapter when using modules

Hi,

I'm writing a modular application using modules, but my my
Zend_Db_Table_Abstract classes cannot find the DB Adapter which I have
set up in my application.ini file as follows:

resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.frontController.moduleControllerDirectoryName = "controllers"
resources.modules[] = ""
resources.db.adapter = PDO_MYSQL
resources.db.params.host = localhost
resources.db.params.username = root
resources.db.params.password = password
resources.db.params.dbname = dbname

Any suggestions on how I might get the module models to find the DB Adapter?

Thanks,
Scott

没有评论: