Habari\UserThemeHandler::display PHP Method

display() protected method

Helper function which automatically assigns all handler_vars into the theme and displays a theme template
protected display ( $template_name )
    protected function display($template_name)
    {
        /*
         * Assign internal variables into the theme ( and therefore into the theme's template
         * engine.  See Theme::assign().
         */
        foreach ($this->handler_vars as $key => $value) {
            $this->theme->assign($key, $value);
        }
        try {
            $this->theme->display($template_name);
        } catch (Error $e) {
            EventLog::log($e->humane_error(), 'error', 'theme', 'habari', print_r($e, 1));
        }
    }