Welcome Guest, Not a member yet? Register   Sign In
Adding Admin Links With Dynamic JavaScript From Controller
#1

[eluser]kirkaracha[/eluser]
I want to cache most of my controllers' output, but some of the pages need to have links so I can add and edit the info. If I set up a "js" controller and routed "global.js" to a "global" method of a "js" controller, couldn't I dynamically add some JavaScript to "global.js" only if I'm logged in as an admin? Is there a better way to only cache pages if the visitor is not an admin?




Theme © iAndrew 2016 - Forum software by © MyBB