/** * Setter for template * * @param string $template Template file * * @throws TemplateDoesNotExistException If template file is not found * * @return null */ public static function setTemplate($template) { self::debug('Calling setTemplate with' . BANDAR_EOL . '$template = ' . $template . BANDAR_EOL . 'type of $template is ' . gettype($template) . BANDAR_EOL); $template = self::getTemplatesPathFromConstant() . $template; $template = realpath($template . '.php'); /** * Check if passed template exist */ if (self::templateExists($template)) { self::$template = $template; } else { throw new TemplateDoesNotExistException(); } }
public static function get_content( $template, $args = array(), $path = false ) { return parent::getTemplateContent( $template, $args, $path ); }
/** * Renders a file and returns its contents bacl * @param string $file View to render * @param [type] $args [description] * @return [type] [description] */ public static function render($view, $args = array()) { parent::render($view, $args); }