我在搜索模块中遇到了这个语法错误。有人可以调查一下这是什么问题。
// 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 编译器:第 79 行“{php}$x=parse_url($GLOBALS[ 'smarty']->_tpl_vars['current_location']);$GLOBALS['smarty']->assign('searchPath',$x['path']);{/php}" 未知标签 "php" <- - 在第 79 行抛出 /home/xxx/public_html/xcart475/include/lib/smarty3/sysplugins/smarty_internal_templatecompilerbase.php