2008年8月7日星期四

Re: [fw-mvc] Prevent action from being executed

Hi Greg,

you could try catching the action in PreDispatch with something like

$this->getRequest()->getActionName()

Not sure if that would work, but it's worth a shot... 

Best,
-
Jon Lebensold

On 7-Aug-08, at 7:49 PM, Greg Freeman wrote:


How do you prevent an action from being called directly? I have an action
that is used to render a menu response segment for the layout. I don't want
people to be able to call it directly via a URL.
--
View this message in context: http://www.nabble.com/Prevent-action-from-being-executed-tp18882299p18882299.html
Sent from the Zend MVC mailing list archive at Nabble.com.


没有评论: