上一页 1 ··· 3 4 5 6 7 8 9 下一页
required : 必须值验证属性 [['字段名'],required,'requiredValue'=>'必填值','message'=>'提示信息']; #说明:CRequiredValidator 的别名, 确保了特性不为空. email : 邮箱验证 ['email', 'email']; Read More
posted @ 2017-06-25 21:23 平平淡淡是幸福 Views(389) Comments(0) Diggs(0) Edit
Bat::find() ; //返回查询实例 Bat::find()->one() //返回一条数据 Bat::find()->all(); //返回所有数据 Bat::find()->asArray()->all() ... Read More
posted @ 2017-06-25 21:06 平平淡淡是幸福 Views(567) Comments(0) Diggs(0) Edit
1.判断有无注入点 2.猜表一般的表的名称无非是admin adminuser user pass password 等.. 3.猜帐号数目 如果遇到0< 返回正确页面 1<返回错误页面说明帐号数目就是1个 4.猜解字段名称 在len( ) 括号里面加上我们想到的字段名称. 5.猜解各个字段的长度 Read More
posted @ 2017-06-20 11:18 平平淡淡是幸福 Views(445) Comments(0) Diggs(0) Edit
PHP直接输出html的,可以采用以下的方法进行过滤: PHP输出到JS代码中,或者开发Json API的,则需要前端在JS中进行过滤: 其它的通用的补充性防御手段 Read More
posted @ 2017-06-20 09:50 平平淡淡是幸福 Views(1992) Comments(0) Diggs(0) Edit
以下是Controller代码 以下是model 代码 view 层代码就没必要写了吧 Read More
posted @ 2017-06-14 17:09 平平淡淡是幸福 Views(178) Comments(0) Diggs(0) Edit
下面自己总结了一下表单小部件中经常使用到的一些默认选中 直接在视图代码里面说明啦 Read More
posted @ 2017-06-12 17:26 平平淡淡是幸福 Views(266) Comments(0) Diggs(0) Edit
首先创建model层 因为要使用表单小部件 所以要加载相应的组件 这里需要的组件有 yii\widgets\ActiveForm 和 yii\helpers\Html 接下来在model定义的class里 写方法 首先我们要定义需要使用表单小部件的name值 不多说上代码 好,到这里是不是感觉大功告 Read More
posted @ 2017-06-12 16:27 平平淡淡是幸福 Views(315) Comments(0) Diggs(0) Edit
青云客智能聊天机器人API 为保证接口稳定,API接口正式启用 api.qingyunke.com,www.qingyunke.com 如何更换API接口地址? 答:如果您的API接口是用在微信公众号上的,那么请找到公众号接口文件,找到 api.ajaxsns.com,将其更改为 api.qingy Read More
posted @ 2017-05-24 19:27 平平淡淡是幸福 Views(718) Comments(0) Diggs(0) Edit
'all', 'uncheck' => array('default','admin_repwd','admin_repwd_act','navigation','navigation_update','navigation_del','navigation_edit','navigation_recycle','navigation_recycle_del... Read More
posted @ 2017-05-10 16:10 平平淡淡是幸福 Views(292) Comments(0) Diggs(0) Edit
谷歌(Google) Api地址:www.google.com/s?hl=zh-cn&sugexp=llsin&q=设计 window.google.ac.h(["设计",[["设计在线","","0"],["设计","","1"],["设计素材","","2"],["设计签名","","3"],[ Read More
posted @ 2017-05-02 09:34 平平淡淡是幸福 Views(1498) Comments(0) Diggs(0) Edit
上一页 1 ··· 3 4 5 6 7 8 9 下一页