Novice Learning Smarty always appear the exception code
Source: Internet
Author: User
Novice Learning Smarty always appear error code
I made the custom function, plugins the function under the folder name. The functions defined in PHP are the Smarty_function_ function name ($ parameter,& $smarty) {function Body} references the <{function name in the template made ...} > Why are you always suggesting a bunch of mistakes that I don't understand?
Fatal error:smarty Error: [In PHP3.TPL Line 1]: syntax error:unrecognized tag ' HAIBINCN ' (Smarty_Compiler.class.php, Lin E 590) in D:\myev\apache\htdocs\smarty\libs\Smarty.class.php on line 1095
HAIBINCN for me to define the label I use to register the way can be passed
In addition, the master pointed out my smarty for the first time is always wrong
Warning:strftime () [Function.strftime]: It is not safe for rely on the system ' s timezone settings. You is *required* to use the Date.timezone setting or the Date_default_timezone_set () function. In case you used any of those methods and you is still getting this warning, your most likely misspelled the timezone Iden Tifier. We selected ' UTC ' for ' 8.0/no DST ' instead in D:\myev\apache\htdocs\smarty\libs\Smarty_Compiler.class.php on line 400
Press F5 refresh will not appear above the error code but changed the template after the double will appear!!!
Ask a master shrimp advice thank you
------Solution--------------------
When using the time function, no time zone is set, and Date_default_timezone_set (' UTC ') is written in front of the file;
It's best to write it in a public file.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.