Home > Backend Development > PHP Tutorial > 请问一个smarty的有关问题

请问一个smarty的有关问题

WBOY
Release: 2016-06-13 10:28:24
Original
896 people have browsed it

请教一个smarty的问题
向模板中传递了两个数组,$ports和$type
其中$ports的元素中包含$type中元素的下标,现在需要显示$ports中每个元素对应的$type描述

 

  



其中单独显示的是可以正常显示的,但是把两个数组结合在一起使用时

报下面的错误
Fatal error: Smarty error: [in client_info.htm line 120]: syntax error: unrecognized tag: $type[$ports[word].valuetype].descript (Smarty_Compiler.class.php, line 446) in E:\xampp\htdocs\sydx\include\Smarty\libs\Smarty.class.php on line 1093

请问这个问题该怎么解决,谢谢!

------解决方案--------------------

这样试试
------解决方案--------------------
看看你那个模版文件少了什么符号没。 多试试,就好了

------解决方案--------------------

 

  

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