<?php
$path = './';
include_once($path.'modxapi.php');
$modx = new MODxAPI();
// connect to db and load settings
$modx->connect();
$modx->getSettings();
$html= $modx->runSnippet('Wayfinder', array('startId' => '0', 'level'=>'2', 'hideSubMenus'=>'true'));
echo $html;
?>