Example #1
0
 /**
  * Faz o auto load das classes do site
  * @param string $class
  */
 public static function autLoad($class)
 {
     $arrDirs = array('adimn/class', 'wowframework', 'wowframework/wow', 'wowframework/wow/lib', 'lib');
     foreach ($arrDirs as $dir) {
         $path = Storange::getPathDir($dir);
         $file = Storange::pathStringFile($path . $class . '.php');
         if (file_exists($file)) {
             include_once $file;
         }
     }
 }
Example #2
0
 /**
  * Recupera o arquivo de config
  * @return type
  */
 private function getFile()
 {
     $file = Storange::getPathFile('config.ini');
     return file_exists($file) ? $file : false;
 }