public function display($file) { require_once 'Shine.php'; $template_path = ROOT_PATH . '/themes'; $config = array('enableCache' => false, 'defaultContext' => array('foobar' => 'abcd')); Shine::setTemplate($template_path, $config); Shine::addPlugin('customtags'); $shine = new Shine($file); echo $shine->render($this->context); }