|
|||
|
Dear All
I am new in ZF, I am writing a view helper. I found the helper can't get the view's name or the controller's name, because my helper needs to know which view or controller using it. I am sorry, I am a lazy guy, I hope I don't need to pass a parameter to the helper but the helper can get the information by itself. Does anyone know how to let the view help get this information. Thanks you all |
|
||||
|
http://fisheye3.cenqua.com/browse/~r...GetRequest.php
$this->getRequest()->getControllerName() etc... This view helper exposes the request obj in the view. While it is not exactly good practice to be accessing request vars in the view, its useful for debugging occasionally
__________________
Zym Framework - A Zend Framework extension library w/ demo app SpotSec Blog: http://spotsec.com/blog |
![]() |
| Thread Tools | |
| Display Modes | |
|
|