2009年8月11日星期二

Re: [fw-db] How to i reference the database adapter in my controllers?

Correct, you can do this if you have the

resources.db.isDefaultTableAdapter = true

setup in your application.ini, or if not using Zend_Application, you
have at least set the default adapter in your bootstrap with

Zend_Db_Table::setDefaultAdapter($db);

-ralph

Joó Ádám wrote:
> You can use Zend_Db_Table::getDefaultAdapter() to fetch it.
>
>
> Regards,
> Ádám
>
>

没有评论: