Page 1 of 1

How do I know between FE and BE?

Posted: Mon May 09, 2011 12:22 am
by katon
I am creating an action that can be called either from backend or from frontend, but in each of the contexts it must behave slightly differently. Namely, in the backend I don't need to check for Front End Users permissions.

My question is, how do I tell if the action was called with an URL in the Front End or in the Back End?

Re: How do I know between FE and BE?

Posted: Mon May 09, 2011 2:01 am
by calguy1000
in the backend, $returnid is empty.

Re: How do I know between FE and BE?

Posted: Mon May 09, 2011 8:14 pm
by katon
Thank you!

Re: How do I know between FE and BE?

Posted: Thu Jun 16, 2011 11:53 am
by psy
True Calguy, and also, in the frontend there is no $smarty.get.sp_ var