If you are using Zend_Application to set up your application, you can
get the adapter from the Zend_Db_Table default adapter (if you have that
setting):
$dbAdapter = Zend_Db_Table::getDefaultAdapter();
Or, you can get it from the Zend_Application resource container:
$container = $this->getInvokeArg('bootstrap')->getContainer();
$dbAdapter = $container->db->getDbAdapter();
-ralph
aaabbbcccdaabb wrote:
To connect to table Animals I write:
$model = new Model_DbTable_Animals();
In documentation:
http://framework.zend.com/manual/en/zend.auth.html
I have:
$authAdapter = new Zend_Auth_Adapter_DbTable(
$dbAdapter,
'users',
'username',
'password'
);
But I don't have dbAdapter so what I should do ?