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   629 Views

Avatar
DeklinKelly

Community Member, 197 Posts

6 September 2011 at 6:52am

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

Avatar
swaiba

Forum Moderator, 1799 Posts

7 September 2011 at 1:12am

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

Avatar
DeklinKelly

Community Member, 197 Posts

7 September 2011 at 1:19am

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

Forum Moderator, 1799 Posts

7 September 2011 at 1:27am

no?
use an ajax request in jQuery then