How do I know between FE and BE?

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
katon

How do I know between FE and BE?

Post 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?
calguy1000
Support Guru
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?

Post by calguy1000 »

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.
katon

Re: How do I know between FE and BE?

Post by katon »

Thank you!
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

Re: How do I know between FE and BE?

Post by psy »

True Calguy, and also, in the frontend there is no $smarty.get.sp_ var
Post Reply

Return to “Developers Discussion”