compile()
compile(string $_function, array $_attr, \Smarty_Internal_Template $_template, string $_script, string $_assign = null) : string
Compiles code for the {insert} tag into cache file
Parameters
string | $_function | insert function name |
array | $_attr | array with parameter |
\Smarty_Internal_Template | $_template | template object |
string | $_script | script name to load or 'null' |
string | $_assign | optional variable name |
Returns
string —compiled code