ACL and appearance manipulation of links, forms and DOM elements

断了今生、忘了曾经 提交于 2019-12-06 15:30:30

3 is the best solution, because you often need to pass the database row to the isAllowed call (for example, if you need to test the owner of the post to choose if you can show the delete link).

You can't do this in the controller like you suggest in 1, because you will need one line for each row.

2 is ugly.

You can speed up resolution of view helpers by extending Zend_View: http://framework.zend.com/manual/fr/performance.view.html.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!