Current state:
Zend_Controller_Front::getInstance()->getRouter()->getCurrentRoute()
In my case :
Zend_Controller_Front::getInstance()->getRouter()->getCurrentRouteName()
returns Employeecontroller/:listemployee
In Employeecontroller
:
public function listemployeeAction()
{
$this->getRequest()->getParam('listemployee')
}
would return either employee
or trainer
Zend_Controller_Front::getInstance()->getRouter()->getCurrentRouteName()