Fix view skeleton include bug and add RouteURL method.

This commit is contained in:
2026-03-20 14:32:58 +01:00
parent 43eb936532
commit 6c068443dc
6 changed files with 69 additions and 9 deletions

View File

@@ -19,6 +19,7 @@ abstract class Controller {
$defaults = [
'routeController' => static::class,
'routeMethods' => [ 'GET' ],
'pageHeadTitle' => 'Page',
];
$args = array_merge($defaults, $args);

View File

@@ -14,8 +14,8 @@ class PagesController extends Controller {
public static function defineRoutes(): array
{
return [
self::Route( routeUrl: '/', routeName: 'Homepage', routeAction: 'index' ),
self::Route( routeUrl: '/test/{string}/baba', routeName: 'test', routeAction: 'test' ),
self::Route( routeUrl: '/', routeName: 'home', routeAction: 'index', pageHeadTitle: "Home Page" ),
self::Route( routeUrl: '/test/{int}/', routeName: 'test', routeAction: 'test' ),
];
}