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. 


bytte wrote:
> 
> 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.
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Restricting-display-of-links-to-non-authorized-pages-in-view-scripts--how-to--tp20273593p20274777.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to