public function getViews()
    {
        $config = $this->config;
        $directories = array();
        $dir = $this->directory;
        if (isset($config['app']['views'])) {
            $directoriesTmp = $config['app']['views'];
            if (!is_array($directoriesTmp)) {
                $directoriesTmp = array($directoriesTmp);
            }
            foreach ($directoriesTmp as $directory) {
                $this->addFolder($directories, $dir . '/' . $directory);
            }
        }
        return $directories;
    }