protected function display($data = [])
    {
        // eg onScript
        $function = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 2)[1]['function'];
        $event = lcfirst(substr($function, 2));
        $id = $this->getId();

        // eg @plugin/plugin/script.php
        $name = '@' . $id . '/' . $id . '/' . $event . $this->view->getExtension();

        $this->view->display($name, $data);
    }
protected function display($data = [])
    {
        // eg onScript
        $function = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 2)[1]['function'];
        $event = lcfirst(substr($function, 2));
        $id = $this->getId();

        // eg @plugin/plugin/script.php
        $name = '@' . $id . '/' . $id . '/' . $event . $this->view->getExtension();

        $this->view->display($name, $data);
    }
protected function display ( $ data = [ ] ) { // eg onScript $ function = debug_backtrace ( DEBUG_BACKTRACE_IGNORE_ARGS , 2 ) [ 1 ] [ 'function' ] ; $ event = lcfirst ( substr ( $ function , 2 ) ) ; $ id = $ this -> getId ( ) ; // eg @plugin/plugin/script.php $ name = '@' . $ id . '/' . $ id . '/' . $ event . $ this -> view -> getExtension ( ) ; $ this -> view -> display ( $ name , $ data ) ; }
Output a rendered template by current event template

@param array $data
Output a rendered template by current event template