Welcome Guest, Not a member yet? Register   Sign In
plugins in parser pass variable
#1

Hi All
Do plugins in parser pass variable?

as an example
{+ foo bar="{bash}" +}

where bash is a variable
thanks before
Reply
#2

nope. only constant values
Reply
#3

(This post was last modified: 02-03-2022, 07:53 AM by titounnes.)

i have found the solution.
public static function foo(array $param) : string
return sprintf("{%s}", $param['bar']) ;
}
   
    public static function btnRead(array $arg=NULL)Confusedtring
    {
        return $arg['path'] . '{'. $arg['file'].'}.docx';
        return json_encode($arg);
    }


    public static function btnRead(array $arg=NULL):string
    {
        return $arg['path'] . '{'. $arg['file'].'}.docx';
        return json_encode($arg);
   
Reply




Theme © iAndrew 2016 - Forum software by © MyBB