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?
Getting Started
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?
Use the view for display markup and metadata. Add a controller once the page needs prepared data, redirects, permissions, or form handling.
That makes sense. I will keep the first static page simple and move reusable behavior into modules when the feature grows.