class testController{
function show(){
$testModel = new testModel();
$data = $testModel -> get();
$testView = new testView();
$testView -> display($date);
}
}
?><?php
class testModel{
function get(){
return "hello world";
}
}
?><?php
class testView{
function display($date){
echo $date;
}
}
?><?php
require_once('testController.class.php');
require_once('testModel.class.php');
require_once('testView.class.php');
$testController = new testController();
$testController->show();
?>