Guide
Examples
Small patterns that show how Mahaut applications are assembled.
- Return an array from a controller action to expose variables to a view.
- Use public/assets for CSS, JavaScript, images, and other browser files.
- Use named route parameters to keep controller method signatures readable.
public function article(string $id): array
{
return $this->viewData(['title' => 'Article', 'id' => $id]);
}