public function tpl(string $tpl, ?array $params = [], ?string $dir = null)
    {
        try {
            $this->message = App::$View->render($tpl, $params, $dir);
        } catch (SyntaxException $e) {
        }
        return $this;
    }
public function tpl(string $tpl, ?array $params = [], ?string $dir = null)
    {
        try {
            $this->message = App::$View->render($tpl, $params, $dir);
        } catch (SyntaxException $e) {
        }
        return $this;
    }
public function tpl ( string $ tpl , ? array $ params = [ ] , ? string $ dir = null ) { try { $ this -> message = App :: $ View -> render ( $ tpl , $ params , $ dir ) ; } catch ( SyntaxException $ e ) { } return $ this ; }
Set tpl file
@param string $tpl
@param array|null $params
@param null|string $dir
@return $this
Set tpl file