{"id":7175,"date":"2014-05-27T08:58:14","date_gmt":"2014-05-27T08:58:14","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/05\/27\/incredible-thing-in-smarty-3-collection-of-common-programming-errors\/"},"modified":"2014-05-27T08:58:14","modified_gmt":"2014-05-27T08:58:14","slug":"incredible-thing-in-smarty-3-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/05\/27\/incredible-thing-in-smarty-3-collection-of-common-programming-errors\/","title":{"rendered":"incredible thing in Smarty 3-Collection of common programming errors"},"content":{"rendered":"<p>I wrote small plugin for smarty 3 to allocate my files in case of theme options. It work fine all the time, but i choose new template for new project. And discover something mad!<\/p>\n<pre><code>{block name=\"css_load\"}\n        \n         \n{\/block}\n<\/code><\/pre>\n<p>Normal code isn&#8217;t it? But it throw exception:<\/p>\n<pre><code>Syntax error in template \"\\www\\themes\\default\\base.tpl\"  on line 12 \"\"  - Unexpected \"'plugins\/bootstrap\/css\/bootstrap.min.css'\", expected one of: \"identifier\"    \n<\/code><\/pre>\n<p>And how to fix it? Just add an extra &#8220;s&#8221; in path string like this:<\/p>\n<pre><code>{block name=\"css_load\"}\n        \n         \n{\/block}\n<\/code><\/pre>\n<p>And it will work fine without exception!<\/p>\n<p>WHAT IS THAT?!<\/p>\n<p>Smarty version 3.1.15<\/p>\n<p>Template: metronic 1.4<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I wrote small plugin for smarty 3 to allocate my files in case of theme options. It work fine all the time, but i choose new template for new project. And discover something mad! {block name=&#8221;css_load&#8221;} {\/block} Normal code isn&#8217;t it? But it throw exception: Syntax error in template &#8220;\\www\\themes\\default\\base.tpl&#8221; on line 12 &#8220;&#8221; &#8211; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7175","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7175","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7175"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7175\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}