Smarty – assign complete array

Smarty template engine provides variety of functions to replace variables in a html templates for example. assign, assign_by_ref. I would like to add one simple extension to assign function.

This function will take an associative array and will assign each key from this array to template.

Hope this helps.


Add a Comment

Your email address will not be published. Required fields are marked *