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}