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

WBOY
Release: 2016-06-23 13:26:03
Original
1053 people have browsed it



回复讨论(解决方案)

能贴代码不?光页面看着有点费劲。。
把runtime文件夹删除了重新加载下试试

代码有点多。html单个访问时不会报错。放进项目就报错了。。
这个runtime文件夹删了,它重新加载同样报这个错。

帮看看大概啊代码。。thank you!!!!!!!!!!
nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    


        添加商品
        
        
    

    

        

            
                当前位置是:商品管理-》添加商品信息
                
                    【返回】
                

            

        

        


        

            

            
                
                    
                    
                
                
                    
                    
                
                
                    
                    
                
                
                    
                    
                
                
                    
                    
                
                
                    
                    
                
                
                
                    
                  
            
商品名称
商品分类
                        
                    
商品品牌
                        
                    
商品价格
商品图片
商品详细描述
                        
                    

                        
                    

            

        

    

错误提示:未定义的变量_v
应该是$s_category_info变量为false或null导致的,在控制器打印看看,有没有从数据表取出数据

是否是你的写法不标准造成的?

<foreach name="list" item="vo" key="k" >   {$k}|{$vo}</foreach>
Copy after login
Copy after login
你的是
{foreach from=$s_brand_info key=_k item=_v}   <option value="{$_v.brand_id}">{$_v.brand_name}</option>{/foreach}
Copy after login
Copy after login

是否是你的写法不标准造成的?

<foreach name="list" item="vo" key="k" >   {$k}|{$vo}</foreach>
Copy after login
Copy after login
你的是
{foreach from=$s_brand_info key=_k item=_v}   <option value="{$_v.brand_id}">{$_v.brand_name}</option>{/foreach}
Copy after login
Copy after login

改了好久都不得行,可能是把TP框架哪里动了。。重新导次框架,全部重来一遍就好了

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