/home/conf/config.php 中配置
'TOKEN_ON'=>true, 'TOKEN_NAME'=>'__hash__', 'TOKEN_TYPE'=>'md5', 'TOKEN_RESET'=>true,
令牌验证行为绑定,在tags.php中
<?php return array('view_filter'=>array('Behavior\TokenBuildBehavior',),); ?>
form标签结束之前并会出现隐藏的input标签
/home/conf/config.php 中配置
'TOKEN_ON'=>true, 'TOKEN_NAME'=>'__hash__', 'TOKEN_TYPE'=>'md5', 'TOKEN_RESET'=>true,
令牌验证行为绑定,在tags.php中
<?php return array('view_filter'=>array('Behavior\TokenBuildBehavior',),); ?>
form标签结束之前并会出现隐藏的input标签
转载于:https://www.cnblogs.com/baby123/p/5337210.html