Exemplo n.º 1
0
 public static function loadApplication($path)
 {
     if (is_dir($path)) {
         $app = new PicnicApplication($path);
         $app->load();
     } else {
         throw new PicnicApplicationNotFound("No application could be found in '{$path}'", 0, "PicnicApplication", "loadApplication");
     }
 }
Exemplo n.º 2
0
 public function loadApplication($path)
 {
     $app = PicnicApplication::loadApplication($path);
     $this->_applications[] = $app;
     /*if (is_dir($path)) {
     			if (file_exists($path."setup.php")) {
     				require_once($path."setup.php");
     				
     				$r = $this->router();
     				
     				require_once($path."config".DS."routes.php");
     			}
     		}*/
 }