Hello,
I am currently using the modx api mode to try and initiate the template in modx so i can use it on other softwares such as wordpress.
This is the code I have:
define('MODX_API_MODE', true);
define('MODX_CORE_PATH', '/home/hopcassi/public_html/temp/core/');
define('MODX_CONFIG_KEY', 'config');
require_once MODX_CORE_PATH . 'model/modx/modx.class.php';
$modx= new modX();
$modx->initialize('web');
$template = $modx->getObject('modTemplate',array('id' => '2' ));
echo $template->process();
This does output the template, however it shows all of the snippet calls and not the outputs.
Please help!
Thanks,
Jeff