public function Run($action, $args) { $action = strtolower($action); if ($action == 'index') { siteController::index(); } elseif ($action == 'view') { siteController::view((int) $args[0]); } elseif ($action == 'edit') { siteController::edit((int) $args[0]); } elseif ($action == 'new') { siteController::newEntry(); } elseif ($action == 'delete') { siteController::delete((int) $args[0]); } else { header("Location: /site"); } }