-
Notifications
You must be signed in to change notification settings - Fork 0
Views
AngelNovo edited this page Aug 10, 2024
·
2 revisions
Every view must be located in /views/
In Gravity2 0.0.1.alpha1 the file extension can only be phtml, as the view can contain both html and php
// `/controllers/ShowView.php`
return View::Render('showview', [ 'greet' => 'Welcome to my blog' ]);/*
`/views/showview.phtml`
*/
<h1><?=$greet?></h1>