令牌验证问题

浏览:2037 发布日期:2014/04/18 分类:求助交流 关键字: 令牌 TOKEN
这是我的表单<div id="enumModal" class='modal hide fade ' tabindex="-1" role="dialog" aria-labelledby="enumModalLabel" aria-hidden="true">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h3 id="enumModalLabel">分类信息</h3>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" >
                    <div class="row">
                        <label class="label-inline">名称:</label>
                        <input id="Enum_name" type="text" name="Enum_name"  maxlength="18" style="width:70%;"/>
                        <span style="color:red;"><strong>*</strong></span>
                        <input type="hidden" id="editMark" value="" />
                        <input type="hidden" id="enum_id" />
                    </div>
                    <div class="row">
                        <label class="label-inline">父分类:</label>
                        <select name="enum_id" id="parentEnum" style="width:70%;">
                            <option value="0" id="0" selected></option>
                             <volist name="root" id="vo">
                                 <option  value="{$vo.enum_id}" id="{$vo.enum_id}" >{$vo.name}</option>
                             </volist>
                           </select>
                    </div>
                    <div>
                        <label class="label-inline">排序:</label>
                        <input type="text" id="sort" style="width:70%;"/>
                    </div>
                </form>        
            </div>
            <div class="modal-footer">
                <button class="btn btn-primary" onclick="enumSub()">确认</button>
                <button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
            </div>
        </div>
确认按钮绑定事件如下$.post(url,
                {"parent_id":parent_id,"name":enum_name,"sort":sort
            },function(data){
                if(data.indexOf("成功")!=-1){
                    window.location.reload();
                }    
        });
令牌绑定如下<?php
return array(     
  'view_filter' => array('Behavior\TokenBuildBehavior'),
);
问题:127.0.0.1 /sns_shop_shop/Admin/Enum/addEnum
INFO: [ app_init ] --START--
INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000031s ]
INFO: [ app_init ] --END-- [ RunTime:0.000451s ]
INFO: [ app_begin ] --START--
INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.000534s ]
INFO: [ app_begin ] --END-- [ RunTime:0.000652s ]
SQL: SHOW COLUMNS FROM `shop_enum` [ RunTime:0.002420s ]
INFO: [ app_end ] --START--
INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000709s ]
INFO: [ app_end ] --END-- [ RunTime:0.000831s ]
没有进行数据插入,该页面也只有这一个表单,求帮助!!
最佳答案
评论( 相关
后面还有条评论,点击查看>>