你可以这样做
$authAdapter->setIdentity($email);
$authAdapter->setCredential($password);
$select = $authAdapter->getDbSelect();
$select->where('status = 1');
试试这个完整的代码
$authAdapter = new Zend_Auth_Adapter_DbTable($db, 'user', 'email', 'password');
$authAdapter->setIdentity($email);
$authAdapter->setCredential($password);
$select = $authAdapter->getDbSelect();
$select->where('status = "1"');
或者
$authAdapter = new Zend_Auth_Adapter_DbTable(Zend_Db_Table::getDefaultAdapter());
$authAdapter->setTableName('user')
->setIdentityColumn('email')
->setCredentialColumn('password');
$select = $authAdapter->getDbSelect();
$select->where('status = "1"');
[编辑]
或
$authAdapter = new Zend_Auth_Adapter_DbTable($db, 'user', 'email', 'password');
$authAdapter->setIdentity($email);
$authAdapter->setCredential($password);
$authAdapter->setCredentialTreatment('? and status = "1"');
仅供参考:zend.auth.adapter.dbtable