When new users learn smarty, they will always see error codes for the custom functions I made, functions in the plugins folder. function name. the function defined in php is the smarty_function _ function name ($ parameter, & amp; $ smarty) {function body}, which is referenced in the template. & lt; {function name ...} & gt; why do I always prompt for a bunch of incomprehensible errors: Fatalerror: Smartyerror: [when new users learn smarty, there will always be error codes
The custom function that I made, the function in the plugins folder. function name. the function defined in php is the smarty_function _ function name ($ parameter, & $ smarty) {function body}, which is referenced in the template <{function name...}> why are I always prompted for a bunch of unintelligible errors?
Fatal error: Smarty error: [in php3.tpl line 1]: syntax error: unrecognized tag 'haibincn' (Smarty_Compiler.class.php, line 590) in D: \ myev \ apache \ htdocs \ smarty \ libs \ Smarty. class. php on line 1095
The labels defined by haibincn can all be registered through
In addition, please give me some advice. my smarty is always wrong for the first time.
Warning: strftime () [function. strftime]: It is not safe to rely on the system's timezone settings. you are * required * to use the date. timezone setting or the date_default_timezone_set () function. in case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. we selected 'utc' for '8. 0/no DST 'Instead in D: \ myev \ apache \ htdocs \ smarty \ libs \ Smarty_Compiler.class.php on line 400
After you press F5 to refresh, the above error code will not appear, but after you change the template, the double will appear !!!
Thank you for your advice.
------ Solution --------------------
When using the time function, if the time zone is not set, write date_default_timezone_set ('utc') in front of the file ');
It is best to write it into a public file