Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: d151059c68
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (18 sloc) 0.456 kB
<?php
$tpl_path = $modx->config['base_path'].'site/templates/';
$template_id = $modx->documentObject['template'];
switch($template_id)
{
# Home
case 1:
$output = file_get_contents($tpl_path.'home.html');
break;
# FAQ
case 2:
$output = file_get_contents($tpl_path.'faq.html');
default:
/* You could also set a default file here */
$output = 'No file found';
break;
}
echo $output;
Jump to Line
Something went wrong with that request. Please try again.