public function __construct() {
$this->model = new Model_Category_Materials();
$this->view = new View();
}
public function __construct() {
$this->modelMaterials = new Model_Category_Materials();
$this->modelVideo = new Model_Category_Video();
$this->view = new View();
}
function action_index() {
$materials = $this->modelMaterials->get_category_materials();
$video = $this->modelVideo->get_videos();
$this->view->generate('content_view.php','template_view.php', ['materials' => $materials, 'video' => $video]);
}
public function __construct() {
$this->categoryMaterialsModel = new Model_Category_Materials();
$this->fooModel = new Foo();
$this->view = new View();
}