PHP Classes

File: controllers/AboutController.php

Recommend this page to a friend!
  Classes of Adrian M   Basic PHP MVC Basic Model   controllers/AboutController.php   Download  
File: controllers/AboutController.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: 234 bytes
 

Contents

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