PHP Classes

File: tests/mvc/views/home/index.php

Recommend this page to a friend!
  Classes of Aleksey   PHP MVC Project   tests/mvc/views/home/index.php   Download  
File: tests/mvc/views/home/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP MVC Project
Framework that implements the MVC design pattern
Author: By
Last change:
Date: 5 years ago
Size: 305 bytes
 

Contents

Class file image Download
<?php
use PhpMvc\View;
use
PhpMvc\Html;

$model = new \PhpMvcTest\Models\HomePage();

View::setLayout('_default');
View::setTitle('Home page');
View::injectModel($model);
?>

<!--View file: <?=View::getViewFile()?>-->

<h2>Index</h2>
<p>This is the main page of the most wonderful site in the world!</p>