PHP Classes

File: controllers/ContactController.php

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

Contents

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