Views
Sprnva is a MVC approach so we also have a Views where the beautiful stacks of graphical illustration is processed.
You will find the views at app/views. Views in sprnva have a naming convention, we added a .view.php in order for you to declare a more beautiful parameter using the view() helper. Example: login.view.php
Then this is how you declare a views inside the controller.
<?php
namespace App\Controllers;
class UsersController
{
public function index(){
return view('/index');
}
}Last updated