How to pass value to included smarty template

You can pass a variable value to a smarty template while including it. Just type name of a variable as parameter and value in quotas:{include file="fielderror.tpl" fieldname="albums"}Now in fielderror.tpl you can access this variable just by {$albums}

Comments

Popular posts from this blog

How to show only month and year fields in android Date-picker?

How to construct a B+ tree with example

Conflict Serializability in database