$dir = str_replace(".", DS, $filename); $file = $mainRoot . DS . $dir . ".php"; if (!is_file($file)) { if ($path == "favicon.ico") { return; } $file = preg_replace("/^" . preg_quote(PP_ROOT, "/") . "/", "", $file);
throw new \Exception("File '{$file}' of controller '{$controller}' is not found"); } require($file); $class = ucfirst(pp_name_to_java($controller)) . "Controller"; if (!class_exists($class, false)) { $class = $module . "\\mvc\\controllers\\" . str_replace("/", "\\", preg_replace("/\\w+$/", "", $dir)) . $class;
if (!class_exists($class, false)) { $file = realpath($file);
|
|