Re: [fw-general] I don't have dbAdapter so how can I create authentication ?

2009-09-23 Thread Ralph Schindler
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->getInv

Re: [fw-general] I don't have dbAdapter so how can I create authentication ?

2009-09-21 Thread Daniel Latter
Somewhere in your bootstrapping you would have created and adapter that you use to connect to your db. This is the dbAdapter you pass in, for example: *$dbAdapter = Zend_Registry::get('db');* $authAdapter = new Zend_Auth_Adapter_DbTable($dbAdapter); $authAdapter->setTableName('customers') ->setI

[fw-general] I don't have dbAdapter so how can I create authentication ?

2009-09-21 Thread aaabbbcccdaabb
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