I’ve got a problem on my hosting servers, (same as MODx’s server):
//$jotPath = $modx->config['rb_base_dir'] . 'snippets/jot/';
//include_once($jotPath.'jot.class.inc.php');
include_once $modx->config['base_path'] . "assets/snippets/jot/jot.class.inc.php"; //moded
$Jot = new CJot;
$Jot->VersionCheck("1.0 RC1");
$Jot->Set("path",$modx->config['base_path'] . "assets/snippets/jot/"); //moded
I have to use
$modx->config[’base_path’] . "assets/snippets/jot/", Thanks to Susan for this. Other wise it gave me some kind of "Open Base dir restriction" error and few times I got "Cannot open file error".
regards.
zi