[eluser]jprateragg[/eluser]
[quote author="PhilTem" date="1352754135"]The best way to do what you want to do is create an auth-helper that provides the appropriate function(s) you need so that you can call it in your view (without breaking the MVC-rule).
Say, your auth-helper has a method
has_access, then you would just do
Code:
echo has_access('resource to access') ? anchor($url, $title) : $title;
[/quote]
The only problem is I have to use some application logic on which parts of the application can be modified/updated based on a centralized workflow. My current method fetches data from the database, analyzes, it combines it with the current logged in user's permissions, and determines if the item should be turned into a link. This keeps me from having to pass 5-6 parameters to the function. I would hate to have to break the MVC rule, but I don't know of another way to do this. Should I just fetch all that data in my $data[] array in my controller, than pass that data to a helper function?