Modx External Script Session Start


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $configpath = str_replace("\\", "/", dirname(dirname(dirname(dirname(__FILE__))))).'/beta2012/config.core.php';
  2.  
  3. require_once $configpath;
  4. require_once MODX_CORE_PATH.'config/'.MODX_CONFIG_KEY.'.inc.php';
  5. require_once MODX_CORE_PATH.'model/modx/modx.class.php';
  6. $modx = new modX();
  7. $modx->initialize('web');

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.