Initial commit of LightMVC framework files.

This commit is contained in:
2026-07-28 22:57:00 +05:30
parent 6beffc9fe9
commit f8411accb4
17 changed files with 424 additions and 3 deletions
+28
View File
@@ -0,0 +1,28 @@
<?php
namespace Core;
class Application
{
public static string $ROOT_DIR;
public Router $router;
public Request $request;
public Response $response;
public View $view;
public static Application $app;
public function __construct($rootPath)
{
self::$ROOT_DIR = $rootPath;
self::$app = $this;
$this->request = new Request();
$this->response = new Response();
$this->view = new View();
$this->router = new Router($this->request, $this->response);
}
public function run()
{
echo $this->router->resolve();
}
}