Home  >  Article  >  Backend Development  >  Why does smarty report this error? Are errors in css also related to the template engine?

Why does smarty report this error? Are errors in css also related to the template engine?

WBOY
WBOYOriginal
2016-09-05 08:59:541373browse

<code>
Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "file:F:\phpstudy\WWW\smartys\smarty\templates\intro.html" on line 12 "*{margin:0;padding:0;border:0;}" - Unexpected ":", expected one of: "}" <-- thrown in F:\phpstudy\WWW\smartys\smarty\libs\sysplugins\smarty_internal_templatecompilerbase.php on line 12</code>

It turns out that the smarty syntax conflicts with the css syntax. They both have curly brackets. Just put the css in an external file

Reply content:

<code>
Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "file:F:\phpstudy\WWW\smartys\smarty\templates\intro.html" on line 12 "*{margin:0;padding:0;border:0;}" - Unexpected ":", expected one of: "}" <-- thrown in F:\phpstudy\WWW\smartys\smarty\libs\sysplugins\smarty_internal_templatecompilerbase.php on line 12</code>

It turns out that the smarty syntax conflicts with the css syntax. They both have curly brackets. Just put the css in an external file

This should be a symbol problem. Check to see if there are missing symbols or symbols in Chinese status

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn