Getting Started

How do I create my first view?

Open 2 replies Updated 2026-07-10 09:41

Original post

I ran `php coriander make:view Dashboard` and now I see a view folder with `index.php` and `metadata.php`. Should the page content live directly in the view, or should I create a controller first and pass data into it?

Replies

Visible

Use the view for display markup and metadata. Add a controller once the page needs prepared data, redirects, permissions, or form handling.

Visible

That makes sense. I will keep the first static page simple and move reusable behavior into modules when the feature grows.