Skip to content
Umakant Patil edited this page Dec 11, 2013 · 1 revision

{call} is used to call a template function defined by the {function} tag just like a plugin function.

Attribute Required Description
name Yes The name of the template function
assign No The name of the variable that the output of called template function will be assigned to
{function hello}
    Hello {$to}!
{/function}

{$fname = 'hello'}
{call $fname to='world'}

output:

Hello world!
Clone this wiki locally