Skip to content

Instantly share code, notes, and snippets.

@sanathks
Created October 27, 2016 05:45

Revisions

  1. Sanath Samarasinghe created this gist Oct 27, 2016.
    9 changes: 9 additions & 0 deletions load_routes.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    <?php

    foreach (new DirectoryIterator(__DIR__.'/'.'Routes') as $file)
    {
    if (!$file->isDot() && !$file->isDir())
    {
    require_once __DIR__.'/Routes/'.$file->getFilename();
    }
    }