【发布时间】:2016-04-30 10:24:08
【问题描述】:
我在搜索模块中遇到了这个语法错误。有人可以看看这是什么确切的问题。
// This is the path to the fts_instant_product_search.php file you uploaded.
{php}$x=parse_url($GLOBALS['smarty']->_tpl_vars['current_location']);$GLOBALS['smarty']->assign('searchPath',$x['path']);{/php}
searchPath = "{$searchPath}/";
它会产生这个错误:
PHP 致命错误:未捕获 --> Smarty 编译器:语法错误 模板 “/home/noveltie/public_html/xcart475/skin/lumino_responsive/customer/fts_instant_product_search.tpl” 在第 79 行 "{php}$x=parse_url($GLOBALS['smarty']->_tpl_vars['current_location']);$GLOBALS['smarty']->assign('searchPath',$x['path']); {/php}" 未知标签“php”
【问题讨论】: