摘要: http://www.cnblogs.com/Moizd/p/xdth_03.html 阅读全文
posted @ 2015-08-18 21:21 tiandi2050 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 每种语言都有它特别的地方,对于JavaScript来说,使用var就可以声明任意类型的变量,这门脚本语言看起来很简单,然而想要写出优雅的代码却是需要不断积累经验的。本文利列举了JavaScript初学者应该注意的七个细节,与大家分享。(1)简化代码JavaScript定义对象和数组非常简单,我们想... 阅读全文
posted @ 2015-08-16 22:58 tiandi2050 阅读(535) 评论(0) 推荐(0) 编辑
摘要: //设置场景(在model),可以将固定的内容进行增删改查 public function scenarios() { return [ 'create' => ['username', 'email', 'password', 'status', 'ro... 阅读全文
posted @ 2015-08-16 22:44 tiandi2050 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 搜索的形式:第一种,点击空白处:'已删除','10'=>'正常','1'=>'锁定'];?> 状态'form-control input-sm','prompt' => '状态','style'=>'width:150px'])?>性别'form-control input-sm','prompt... 阅读全文
posted @ 2015-08-13 15:32 tiandi2050 阅读(330) 评论(0) 推荐(0) 编辑
摘要: http://www.5icool.org/a/201204/576.html 阅读全文
posted @ 2015-08-10 19:32 tiandi2050 阅读(94) 评论(0) 推荐(0) 编辑
摘要: http://www.yiichina.com/tutorial/492 阅读全文
posted @ 2015-08-10 11:14 tiandi2050 阅读(120) 评论(0) 推荐(0) 编辑
摘要: use yii\widgets\ActiveForm; ['class' => 'form-horizontal'], 'fieldConfig' => ['options'=>['class'=>'control-group'], 'template' => "{label}{input}{err... 阅读全文
posted @ 2015-08-07 17:23 tiandi2050 阅读(1559) 评论(4) 推荐(0) 编辑
摘要: Yii2 DAOhttp://blog.csdn.net/hzqghost/article/details/44116039 阅读全文
posted @ 2015-08-06 22:50 tiandi2050 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 一:Yii2这是控制器中的分页,可以定义分页的条数:controller中的用法:public function actionList(){$model = new User();$dataProvider = new ActiveDataProvider([ 'query' => $... 阅读全文
posted @ 2015-08-06 22:40 tiandi2050 阅读(515) 评论(0) 推荐(0) 编辑
摘要: rbac的用法http://www.yiichina.com/tutorial/485CREATE TABLE IF NOT EXISTS `auth_assignment` ( `item_name` varchar(64) NOT NULL, `user_id` varchar(64) NO... 阅读全文
posted @ 2015-08-06 22:21 tiandi2050 阅读(178) 评论(0) 推荐(0) 编辑