Therefore, I can use the Smarty plugin html_optionsin a template like this:
html_options
{html_options options=$arr }
But what I want to do is call the function behind this plugin ( smarty_function_html_options) directly from PHP.
smarty_function_html_options
I'm sure this should be possible, does anyone have any ideas on how to achieve this?
First, find the PHP file that contains html_optionsthe Smarty installation. Then enable this function from your code. Finally, call the appropriate method in your PHP code.
"" Smarty , , , . . Smarty , PHP, .
, , "" : , . , , HTML, .
Source: https://habr.com/ru/post/1754767/More articles:Why is the tar command marked as "legacy"? - shelldebugging c - c programshow to use Linq to generate a unique random number - linqwhat is the difference between short signed ints and signed ints - cJava: distribution of power law - javaКак уникально диктовать по значению? - pythonSpec Explorer for beginners - c #SQL is needed to get a record with two matching records - sqlCakePHP hostname routing - dnswcf client ip as ipv6 - c #All Articles