/**
  * Render a view
  *
  * @param string $file
  * @param array $vars Vars to template
  */
 protected function render($file, array $vars = array())
 {
     if ($this->view == null) {
         ControllerException::viewsRenderNotDefined();
     }
     $this->view->render($file, $vars);
 }