Home > Backend Development > PHP Tutorial > 用tinkphp框架套模板时候。add页面出错,请帮小弟我看看哪个地方错了,多谢!

用tinkphp框架套模板时候。add页面出错,请帮小弟我看看哪个地方错了,多谢!

WBOY
Release: 2016-06-13 12:25:11
Original
950 people have browsed it

用tinkphp框架套模板时候。add页面出错,请帮我看看哪个地方错了,谢谢!!


------解决思路----------------------
能贴代码不?光页面看着有点费劲。。
把runtime文件夹删除了重新加载下试试
------解决思路----------------------
错误提示:未定义的变量_v
应该是$s_category_info变量为false或null导致的,在控制器打印看看,有没有从数据表取出数据
------解决思路----------------------
是否是你的写法不标准造成的?

<foreach name="list" item="vo" key="k" ><br />   {$k}<br><font color='#FF8000'>------解决思路----------------------</font><br>{$vo}<br /></foreach>
Copy after login
Copy after login
你的是
{foreach from=$s_brand_info key=_k item=_v}<br />   <option value="{$_v.brand_id}">{$_v.brand_name}</option><br />{/foreach}
Copy after login
Copy after login

------解决思路----------------------
是否是你的写法不标准造成的?
<foreach name="list" item="vo" key="k" ><br />   {$k}<br><font color='#FF8000'>------解决思路----------------------</font><br>{$vo}<br /></foreach>
Copy after login
Copy after login
你的是
{foreach from=$s_brand_info key=_k item=_v}<br />   <option value="{$_v.brand_id}">{$_v.brand_name}</option><br />{/foreach}
Copy after login
Copy after login

------解决思路----------------------

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