I am trying this code:
Zend_Controller_Front::getInstance()->getRequest()->getControllerName()
Zend_Controller_Front::getInstance()->getRequest()->getActionName()
I get this error:
Zend_Controller_Front Class Not Found
I am giving answer on the basis of what i have get from your question it might be wrong but from my point of view I am giving this answer.
$action= $this->getEvent()->getRouteMatch()->getParam('action');
$controller= $this->getEvent()->getRouteMatch()->getParam('controller');
you can write this in controller and pass this variables in view model.
$view = new ViewModel(array('action' =>$action,'controller' =>$controller));
$view->setTemplate("tournamentview/index/getTeam.phtml");
return $view;
and you can access action and controller variable in view i.e. getTeam.phtml file.$action will give you the action Name and the $ controller will give you the alias of controller like 'TournamentView\Controller\Index' hope it will work
\Zend_Controller_Front. That said, your view probably isn't the best place for this - I would do it in your controller and pass any results to your view as necessary.