This question has been answered by multiple community members. See the first response.
<!-- PHP --> include("./modxapi.php"); <!-- ENDPHP -->
<!-- PHP --> $modx->getChunk($header); <!-- ENDPHP -->function myFunction() {
global $modx;
...
}$chunk = $modx->getChunk('ChunkName');
echo $chunk;$modx->regClientCSS('url/of/css/file');If you know where the CSS file(s) are, you can just add this for each one (assuming that your page has proper HTML, with a head and body section).
$modx->regClientCSS('path/to/css/file');
One final question I have... I have a CSS menu using wayfinder which highlights the current page, how can I pass this information through to modx so it think the static "forum" page is being visited so this link will light up?
$modx->resource =& $modx->getObject('modResource', 12);