private function includeMVCView() { $controller = strtolower(Globals::getItem("controller")); $method = strtolower(Globals::getItem("method")); $filePath = BASE_DIR . "/Views/" . $controller . "/" . $method . ".php"; $filePath = str_replace("\\", DIRECTORY_SEPARATOR, $filePath); if (!FileSystem::exists($filePath)) { errorLog("View not found for " . $controller . "/" . $method, 2); } self::includeRequestedView($filePath); }
public function pageIndex() { return Globals::getItem("pageIndex") ?? 1; }