protected function render($filename, $variables = array(), $extension = '.php')
 {
     $path = implode(DIRECTORY_SEPARATOR, array_merge(array($this->adaptor->getAdminViewPath()), $this->viewPathExtra));
     $filename = $path . DIRECTORY_SEPARATOR . $filename . $extension;
     $this->view->render(array("content" => Template::parseFile($filename, $this->view->getVariables())));
 }
 /**
  * Renders a templated view file
  * @param  string $filename
  * @param  array  $variables
  * @param  string $extension Defaults to .php
  */
 protected function render($filename, $variables = array(), $extension = '.php')
 {
     $filename = $this->getTemplatePath() . $filename . $extension;
     $this->view->render(array("content" => Template::parseFile($filename, $this->view->getVariables())));
 }
 public function widget($args, $instance)
 {
     echo Template::parseFile($this->getTemplateSource(), array("polyglot" => Polyglot::instance(), "pluginSetup" => $args, "config" => $instance));
 }