📕
Sprnva Docs
  • Introduction
  • What's New?
  • Installation
    • Requirements
    • Download Sprnva zip no composer required
    • Install Sprnva Using Composer
    • Setup Config
  • Deployment
  • File Structure
  • Database
    • Select
    • SelectLoop
    • Insert
    • Update
    • Delete
    • Query
    • Seeder
    • Paginate
    • With
    • andFilter
    • withCount
    • get
  • Query Builder
  • Migration
    • INSTANCES
      • NEW
      • RENAMETABLE
      • DROP
      • CHANGE
    • DUMPS
      • dump
      • dump prune
    • MAKE
    • MIGRATE
      • migrate
      • migrate fresh
    • ROLLBACK
  • Routing
    • with parameter
    • multiple parameters
    • with closure
    • group
    • controller grouping
  • Controllers
    • methods
  • Views
    • Passing Parameters
  • Validation
    • validate
      • validation type
  • Authentication
  • Alert Messages
  • Default Helpers
  • CSRF Protection
  • Email
  • Packages
    • Fortify
  • Themes and Templates
Powered by GitBook
On this page

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');
    }
}
PreviousmethodsNextPassing Parameters

Last updated 2 years ago