AlainGau Posted October 7, 2014 Share Posted October 7, 2014 I have the below PHP file in my module folder that is call with an ajax post (jquery from UI). And I am getting the following error: Class 'Context' not found in ... when I trigger the POST I am running PS 1.6, how can I access the context from this file?? <?php define('_EXTERNAL_SCRIPT_', 'true'); include(dirname(__FILE__).'../../config/config.inc.php'); include(dirname(__FILE__).'../../init.php'); include(dirname(__FILE__).'../../classes/Cookie.php'); Context::getContext()->cookie->__set('myData', $_POST['data1']); ?> Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now