2008年9月10日星期三

[fw-mvc] getControllerName

Hi,

I am using actionStack to make my menu. Later in my view template I get the
controller name:

// this returns 'menu'
$controller =
Zend_Controller_Front::getInstance()->getRequest()->getControllerName();

// this returns 'application'
$controller =
Zend_Controller_Front::getInstance()->getRequest()->controller;

Is this a bug, or is it intended?

monk.e.boy
--
View this message in context: http://www.nabble.com/getControllerName-tp19414573p19414573.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: