Forums / Cotonti / Development / Ajax part in plugins

Suggestion for some improvments

ez
#25394 2010-07-29 21:40
I think Ajax should be as clean as possible... Why do you ask.. :/

Because ajax responses needs to be FAST
It is usually an action that the user is waiting for (so an UserInterface thing)

If you need rights:
just do: $plug_admin = sed_auth('plug', 'Yourplug', 'A');

Language file:
require_once(sed_langfile('Yourplug'));

I think $cfg is available, not sure about $usr..
maybe try: global $usr
==- I say: Keep it EZ -==