分类目录:未分类

以下是分类 未分类 下的所有文章

yii 多文件上传

跟手册相比 这里多了对文件大小的限制,希望对大家有帮助 因为跟单文件上传基本一样,我在原来的基础上做了修改  这里就直接上代码了   首先是model层 <?php /** * Created by PhpStorm. * User: administor * Date: 2017/5/11 * Time: 14:04 */ namespace frontend\models; use yii\base\Model……

yii 的单文件上传

首先新建一个Model层,防止与现有的表单小部件的Model 冲突,然后再我们的Model里 写一个上传的方法 叫upload 另外为了验证文件的尺寸大小 我 们在model里写了一个限制文件大小的方法 checksize 如下所示 <?php /** * Created by PhpStorm. * User: administor * Date: 2017/5/11 * Time: 14:04 */ name……

yii 表单小部件的使用方式

首先创建model层 因为要使用表单小部件 所以要加载相应的组件 这里需要的组件有 yii\widgets\ActiveForm 和 yii\helpers\Html 接下来在model定义的class里 写方法 首先我们要定义需要使用表单小部件的name值 不多说上代码 <?php /** * Created by PhpStorm. * User: jinlei * Date: 2017/5/10 * Time: 9:35 */ namespa……

yii 表单小部件

文本框:textInput(); 密码框:passwordInput(); 单选框:radio(),radioList(); 复选框:checkbox(),checkboxList(); 下拉框:dropDownList(); 隐藏域:hiddenInput(); 文本域:textarea([‘rows’=>3]); 文件上传:fileInput(); 提交按钮:submitButton(); 重置按钮:resetButtun();   <?php $form = ActiveF……

So in hot places and cold places

As I said earlier, you would be hard pressed to find a BDSM community that is unwilling to help you along your way, and every person has their own strengths and techniques to pass along. I’ve yet to come across a sex/BDSM blogger that doesn’t freely offer help and advice, and have a be……

Then of course you can compare

It a great way to bond, isn it?! When you see the person has high quality toys, for instance, you learn a little more about them and that they are educated about materials and not horribly prudish which is interesting. Then of course you can compare, recommend, talk and laugh about all of it. Ther……