Skip to content

Commit 084a1d1

Browse files
committed
(fix): Controller not loading
1 parent 4b75e60 commit 084a1d1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Core/Database.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class Database
88
{
9-
public function __construct($config, $username = 'pma', $password = 'pmapass')
9+
public function __construct($config, $username = 'root', $password = '')
1010
{
1111
$dsn = 'mysql:' . http_build_query($config, '', ';');
1212
$this->conn = new PDO($dsn, $username, $password, [

Core/Router.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function route(string $uri, string $method): int
6060
// $matches[0] is the full matched string, so skip it.
6161
$params = \array_slice($matches, 1);
6262

63-
$controller = base_path($route['controller']);
63+
$controller = base_path("Http/controllers/{$route['controller']}");
6464

6565
if (!file_exists($controller)) {
6666
$this->abort(Response::INTERNAL_SERVER_ERROR);

0 commit comments

Comments
 (0)