public function generateViews()
    {
        $viewPath = $viewExtension = '';
        $viewDir = $this->command->applicationDir.DS.'Views'.DS.$this->controller;
        $this->hasDirectory($viewDir);

        $viewExtension = ($this->layoutType == 'php') ? self::EXTENSION : self::TWIG_EXTENSION;
        $viewType = ($this->layoutType == 'php') ? 'Php'.DS : '';

        foreach ($this->views as $key => $view) {
            $viewPath = $this->viewTemplatePath.'controller'.DS.$viewType.$view.self::TEMP_EXTENSION;
            $this->readContents($viewPath, $view);
            $this->generate($view.$viewExtension);
        }
    }