PHP Classes

File: controllers/HomeController.php

Recommend this page to a friend!
  Classes of Adrian M   Basic PHP MVC Basic Model   controllers/HomeController.php   Download  
File: controllers/HomeController.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Basic PHP MVC Basic Model
Implement MVC applications with a router class
Author: By
Last change:
Date: 9 months ago
Size: 229 bytes
 

Contents

Class file image Download
<?php
include('models/HomeModel.php');
include(
'views/HomeView.php');
class
HomeController {
    public function
invoke() {
       
$model = new HomeModel();
       
$view = new HomeView($model);
       
$view->render();
    }
}