- 博客(6)
- 收藏
- 关注
原创 yii使用网页
新浪云 http://blog.csdn.net/libinemail/article/list/1 李斌http://blog.sina.com.cn/libinemail 付仲云http://blog.csdn.net/qq_34018847
2016-03-31 10:43:15 305
原创 yii2批量入库
function many_file($file) { //echo count($file);die; $arr = array(); foreach($file as $k=>$v) { $img = $v->name; $images = 'uploads/'
2016-03-31 10:22:39 670
原创 yii2分页
控制器 namespace app\controllers; use yii\web\Controller; use yii\data\Pagination; use app\models\Country; class CountryController extends Controller{ public function actionIndex() {
2016-03-29 21:18:07 455
原创 yii2修改数据
yii2中model层修改数据写法 $username = $post['UpdateeForm']['username']; $password= $post['UpdateeForm']['password']; $email = $post['UpdateeForm']['email']; $phone = $post['Upd
2016-03-29 20:13:53 1557
原创 yii2表单使用
Controller控制器层代码 [php] view plain copy print? namespace frontend\controllers; use frontend\models\UserForm; class UserController extends \yii\web\Controller
2016-03-29 16:25:36 2804
原创 yii2表单验证方法
model层的书写验证规则 return [ [['username','password','email','phone','images'],'required','message'=>'不能为空'], //验证唯一性 [['username'], 'unique','targetClass' => '\backend\models\Verification','message'=>
2016-03-29 12:23:25 8214
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人