Action View Helper in Zend - Work around?

后端 未结 4 2109
别跟我提以往
别跟我提以往 2020-12-16 18:49

I\'m working on building up an interface that I want to function as a \"tabbed browsing\" sort of function. Each of these tabs has already been written as an action and the

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-16 19:03

    If you're not generating the tab/tab panes from existing markup, and you're loading the content on demand, then you simply must check whether the user has permission to access the tab before displaying the tab itself, and again when attempting to load the tab's content.

    Checking whether the user has these access permissions should be an acceptable mode of operation and should not be expensive to perform.

    If these actions produce content that works in some standalone page, in addition to the tabs, then the Action view helper is the corrent way to proceed. Simply perform the same ACL (or other) check performed in the action when generating the tab.

提交回复
热议问题