Smarty localization label - how to use in php? -


im using smarty localization language labels

{config_load file="localization.conf" section=$project->lang} 

when need label localization.conf put smarty template file (tpl) ex. {#label#} (where label in localization.conf = 'some text')

but need use label in php file , how ?

if want use config variables before output (assume html output) can load config in php

$smarty->configload('test.conf', 'login');  var_dump($smarty->getconfigvars());     $smarty->display('test.tpl'); 

those config data loaded via php visible in smarty templates. more info: http://www.smarty.net/docs/en/api.get.config.vars.tpl


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -