bootstrap.php 563 B

12345678910111213141516171819202122232425
  1. <?php
  2. /*
  3. * To change this license header, choose License Headers in Project Properties.
  4. * To change this template file, choose Tools | Templates
  5. * and open the template in the editor.
  6. */
  7. /**
  8. * @author robert.marshall
  9. */
  10. // TODO: check include path
  11. //ini_set('include_path', ini_get('include_path'));
  12. chdir("..");
  13. $a=getcwd();
  14. $files=glob("base/*.php");
  15. foreach ($files as $file)
  16. require_once $file;
  17. spl_autoload_register(function($class){
  18. if (file_exists("../Model/$class.php"))
  19. require_once("../Model/$class.php");
  20. });
  21. ?>