Home > Backend Development > PHP Tutorial > 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
Release: 2016-09-05 08:59:54
Original
1428 people have browsed it

<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>
Copy after login
Copy after login

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>
Copy after login
Copy after login

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template