[SOLVED] How to figure out that I am in admin panel?
Posted: Sat Aug 23, 2008 3:10 pm
Hello,
The question above.
While loading module I need to figure out if I it is called from admin panel or from the front end to execute different tasks. Something like this
Thank you for your help,
Sonya
The question above.

My question is how to realize this condition if (in_admin_panel)?class MyClass extends CMSModule
{
function __construct() {
parent::__construct();
if (in_admin_panel) {
do this;
} else {
do that;
}
}
...
}
Thank you for your help,
Sonya