2009年8月27日星期四

Re: [fw-mvc] MVC integration of Zend_Acl

AFAIK people just randomly decided to implement access management in plugins. I don't really see any advantage in using a plugin over a helper. Since you're referencing the controller object itself in your implementation, it's much more natural to use a helper since it already has a reference to it, whereas in a plugin you'd have to do a bit more work.

   -- Mon


On Fri, Aug 28, 2009 at 10:43 AM, jThierry <thierry@jossermoz.net> wrote:

Hi all,

I've been working on a component to realise the MVC integration of Zend_Acl
which is different from the proposal
(http://framework.zend.com/wiki/pages/viewpage.action?pageId=39025) that
seems to be on hold.

I'm using an action helper the perform the checks at pre dispatch time on
controllers implementing Zend_Acl_Resource_Interface instead of a plugin and
am wondering if there's any underlying reason that would encourage the use
of a plugin.

I would really much appreciate your feedback on the action helper approach.

The code can be found there: http://code.google.com/p/oolala/

Thanks,

Thierry
--
View this message in context: http://www.nabble.com/MVC-integration-of-Zend_Acl-tp25183254p25183254.html
Sent from the Zend MVC mailing list archive at Nabble.com.


没有评论: