« Return to Thread: Restricting display of links to non-authorized pages in view scripts- how to?

Re: Restricting display of links to non-authorized pages in view scripts- how to?

by Chris Martin :: Rate this Message:

Reply to Author | View in Thread

You could potentially make something like a "isAllowedUrl($module, $controller, $action)" view helper that checks the permissions and renders the link itself, but you might lose flexibility when wanting to include/exclude other html decorators and such.


Thanks Martin,

That's what I did so far, but I'm not happy with all those 'if/else' clauses in my view script. I was hoping for a better way.

Chris Martin wrote:
You could make a view helper.

 « Return to Thread: Restricting display of links to non-authorized pages in view scripts- how to?