Ajax called PHP file SCOPE

Hi, I'm trying to develop an AJAX theme, and was wondering if someone could answer a question for me. I call a PHP file from jquery after the page loads. Inside of this PHP file, I would like to call some system methods... E.G. query(), but they are not visible.

Any help would be appreciated on how to work around this. Thanks in advance!

Comments

  • acrylian Administrator, Developer
    You have to call that page as a custom theme page to have the theme context available. See the theming tutorial on that.
  • Great, thanks for the quick reply! It all makes sense now.
Sign In or Register to comment.