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?
How do I know between FE and BE?
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: How do I know between FE and BE?
in the backend, $returnid is empty.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: How do I know between FE and BE?
True Calguy, and also, in the frontend there is no $smarty.get.sp_ var