public function createView($file = null)
    {
        $view = new View($this->getTemplatePath() . '/app/views/');
        if ($file) {
            $view->setFile($file);
        }
        return $view;
    }