Hasta donde se esto podría ser MVC:
Controller:
Código:
<?php
require __DIR__ . '/../classes/class.routing.php';
$controll = new Routing;
$controll->get_model($_GET['page']);
$model = new IndexModel();
$model->get_page($_GET['page']);
$controll->get_view($_GET['page']);
?>
Model:
Código:
<?php
/**
* Created by PhpStorm.
* User: root
* Date: 14/04/15
* Time: 15:39
*/
class IndexModel{
public function get_page($get){
if($get == null){
echo 'ERROR';
}else{
echo 'OK: ' . $get;
}
}
}
View:
Código:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
Hellow MVC!
</body>
</html>