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"); } }
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"); } }*/ }