Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Do something when administrator clicks on Security tab


Reply

4 Posts   599 Views

Avatar
DeklinKelly

6 September 2011 at 6:52am Community Member, 197 Posts

How can I do something every time an administrator clicks on the Security tab?

Avatar
swaiba

7 September 2011 at 1:12am Forum Moderator, 1796 Posts

adds some unobtrusive jQuery I'd image, add the requirement into the init of the leftandmain object.

Avatar
DeklinKelly

7 September 2011 at 1:19am Community Member, 197 Posts

No, I want to do something server-side.

For example log something everytime the security tab is clicked on:

file_put_contents('log.txt','hello');

Avatar
swaiba

7 September 2011 at 1:27am Forum Moderator, 1796 Posts

no?
use an ajax request in jQuery then