Saturday, 15 May 2010

php - What Smarty plugin does the lang_print function belong to, and what does it do? -



php - What Smarty plugin does the lang_print function belong to, and what does it do? -

hi guys i'm playing smarty. i'm new smarty have no understanding of functions, question silly.

i know next tag/function does, not in smarty documentation, function of smarty plugin:

{lang_print id=756} {lang_print id=720} {lang_print id=123} {lang_print id=2343} {lang_print id=34123} {lang_print id=3342} {lang_print id=2233}

what do? please kindly explain me.

not sure if it's form reply questions old, might helpful similar problem:

the lang_print not native smarty function. hence custom smarty plugin. need find php code custom plugin determine does.

plugins stored in folder defined in $smarty->plugins_dir. default 'plugins' folder underneath smarty folder. http://www.smarty.net/docs/en/variable.plugins.dir.tpl

plugins separate files names based on plugin name, according specific naming convention. in case filename functions.lang_print.php http://www.smarty.net/docs/en/plugins.naming.conventions.tpl

you can @ plugin php code determine does, reading code , using regular php debugging techniques. http://markonphp.com/6-debugging-tips-php-coders-should-know/ debug logging using error_log 1 of mutual ways due complexity of getting php debugger work in environments.

php smarty

No comments:

Post a Comment