<?php

class Controller {

    public function display($view, $data = []) {
        require_once "../app/view/" . $view . ".php";
    }

    public function logic($model) {
        require_once "../app/model/" . $model . ".php";
        return new $model;
    }
}
