摘要: 1 layout = false;//去掉头部和尾部 20 $model = new Admin; 21 if ( Yii::$app->request->isPost ) {//如果是post请求 22 $post = Yii::$app->request->post();//接收post请求 23 if (... 阅读全文
posted @ 2017-05-31 22:47 zhoupufelix的博客 阅读(329) 评论(0) 推荐(0)
摘要: 一利用gii 生成后台模块 1.开启gii 在config\web.php 中 2.通过浏览器地址访问 www.yii.com/index.php?r=gii 3.点击模块创建 4.在配置文件中加载 5.创建完新增目录如图所示 6.路由访问 www.yii.com/index.phpr=admin/ 阅读全文
posted @ 2017-05-31 22:23 zhoupufelix的博客 阅读(177) 评论(0) 推荐(0)