2008年9月30日星期二

Re: [fw-mvc] Current Action in ViewHelper

-- Daniel Skinner <skinner@destiny-denied.co.uk> wrote
(on Tuesday, 30 September 2008, 05:01 PM +0100):
> What is the most correct way of obtaining the current action name in a
> ViewHelper?

<? $action = Zend_Controller_Front::getInstance()->getRequest()->getActionName() ?>

--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/

没有评论: