public static function process()
 {
     $request = DKY_RequestHandler::getRequest();
     $component = DKY_ComponentHandler::getComponent($request->componentName);
     if (!empty($component)) {
         $component->run($request->actionName, $request);
     } else {
         header("HTTP/1.0 404 Not Found");
         DKY_HTTP::redirect("/" . DKY_Config::get("404_path"));
     }
 }
 public static function run()
 {
     // TODO: Filters.. exceptions..?
     if ($_SERVER["REQUEST_URI"] == "/favicon.ico") {
         DKY_HTTP::redirect("/www/favicon.ico");
     }
     DKY_Config::initialize();
     DKY_DB::initialize(array("host" => DKY_Config::get("db_host"), "database" => DKY_Config::get("db_database"), "username" => DKY_Config::get("db_username"), "password" => DKY_Config::get("db_password")));
     DKY_Log::initialize(array("path" => DKY_Config::get("log_path")));
     DKY_Log::i("REQUEST: " . $_SERVER["REQUEST_URI"]);
     DKY_SessionHandler::startSession();
     DKY_SessionHandler::cachePermissions();
     //$strLogTail = "<div style='font:10px sans-serif;height:100px;overflow:auto;'>" . implode("<br />", DKY_Log::tail(20)) . "</div>";
     //DKY_Output::raiseMessage($strLogTail, DKY_MSG_INFO);
     DKY_RequestHandler::process();
 }