Backend\Core\Engine\Base\Action::display PHP Метод

display() публичный Метод

Display, this wil output the template to the browser If no template is specified we build the path form the current module and action
public display ( string $template = null )
$template string The template to use, if not provided it will be based on the action.
    public function display($template = null)
    {
        // parse header
        $this->header->parse();
        /*
         * If no template is specified, we have to build the path ourself. The default template is
         * based on the name of the current action
         */
        if ($template === null) {
            $template = '/' . $this->getModule() . '/Layout/Templates/' . $this->URL->getAction() . '.html.twig';
        }
        $this->content = $this->tpl->getContent($template);
    }