in your action controller:
$this->view->actionName = $this->getRequest()->getActionName();
in your view:
you can download <?= $This->actionName ?> free from...
That should do it.
Bart
PHPScriptor schreef:
Hey,
Is it possible to get the action (and controller) name in the view?
I have a menu at the left of my site where I show some tips depending on the
page where the visitors are.
e.g. If the url is http://localhost/php/zend I want to show the visitor a
tip like 'you can download zend free from...'. If the url is
http://localhost/php/pear 'you can download pear free from'... So I need the
know the action. I don't mind if it is directly or through a view helper.
thanks!
-----
visit my website at http://www.phpscriptor.com/ http://www.phpscriptor.com/