private function createView($view, $viewFile, $type, $moduleDir)
    {
        $template = file_get_contents(
            __DIR__.DIRECTORY_SEPARATOR."templates".DIRECTORY_SEPARATOR."view_".$type.".tpl"
        );

        $template = str_replace('$VIEW', $view, $template);

        file_put_contents($viewFile, $template);
    }