private function getTemplate($sub_directories, $controller, $is_resource = false)
    {
        $file = __DIR__ . "/../templates/controller/";
        $file .= $is_resource ? "controller-with-resource.php.dist" : "controller.php.dist";

        if (file_exists($file))
        {
            $template = file_get_contents($file);

            return strtr($template, [
                '{{namespace}}' => get_app_namespace(),
                '{{sub_directories}}' => $sub_directories,
                '{{controller}}' => $controller
            ]);
        }

        return false;
    }