aboutsummaryrefslogtreecommitdiff
path: root/vendor/trails/src/trails.php
blob: 2e9e8e2c504697ec98c7a8f78fdc5d7896befb91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
function fgc($files/*, ... */) {
  $result = '';
  $files = func_get_args();
  foreach ($files as $file) {
    $string = file_get_contents(dirname(__FILE__)."/$file.php");
    $result .= preg_replace("/^(<\?(php)?)|(\?>)\s*\v+$/", "", $string);
  }
  return $result;
}
?>
<?= "<?php" ?>
<?= fgc("HEADER") ?>

<?= fgc("dispatcher", "response", "controller",
        "inflector", "flash", "exception") ?>