hi all,
I have two module: account, admin
I want each of them have their authentication to login...
for their auth, I created two controller in each module(AuthController.php)
now we have just hasIdentify to auth.. but how I say it that it is account
and other is admin...
now when I login each index module login.......
Admin_IndexController
public function init()
{
/* Initialize action controller here */
$auth = Zend_Auth::getInstance();
if (!$auth->hasIdentity()) {
Zend_Auth::getInstance()->clearIdentity();
$this->_redirect('/admin/auth/login');
}
else{
$this->_forward('index');
}
}
How we can implement account login and admin panel login in zend (two
different authentiation in zend????????)
Thanks,
Shahrzad Khorrami