diff --git a/src/helpers.php b/src/helpers.php index 3708799..93a79b0 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -11,7 +11,7 @@ function view($name, $args = []): string global $app; $dir = match($app->type) { - 'web' => __DIR__ . '/../views/', + 'web' => $app->dir . '/../views/', 'console' => __DIR__ . '/views/' };