Exemplo n.º 1
6
 public static function loadClass($_class)
 {
     $_class = ltrim($_class, "\\");
     $_file_path = \App\Config\Config::getBasePath() . "/" . str_replace("\\", "/", $_class);
     $_file_path .= ".php";
     return include $_file_path;
 }
Exemplo n.º 2
0
 public function __construct()
 {
     $this->person_collection = array();
     $this->storage_file = \App\Config\Config::getBasePath() . \App\Config\Config::getStorageFileName();
 }