Ответ 1
Zend_Controller_Front::getInstance()->getRouter()->getCurrentRouteName()
Текущее состояние:
Проблема: - Необходимо знать, какое имя маршрута отправляется/используется из запроса.
Пример: 1. http://www.mycompany.com/en/trainers/ Ожидаемое возвращаемое значение: www-language-trainer
Zend_Controller_Front::getInstance()->getRouter()->getCurrentRouteName()
Zend_Controller_Front::getInstance()->getRouter()->getCurrentRoute()
В моем случае:
Zend_Controller_Front::getInstance()->getRouter()->getCurrentRouteName()
возвращает Employeecontroller/:listemployee
В Employeecontroller
:
public function listemployeeAction()
{
$this->getRequest()->getParam('listemployee')
}
вернет либо employee
, либо trainer