码迷,mamicode.com
首页 >  
搜索关键字:yii2    ( 1390个结果
IBG项目工作内容
IBG项目技术概览(HTML/CSS/JavaScript/AngularJS/PHP/MySQL):(1)后台:PHP Yii2.0 Framework(2)前端:Ionic FrameworkIBG项目工作日志2015年5月11日1.修复bug:订单验证;(1)验证Order是否已存在; 同一....
分类:其他好文   时间:2015-06-16 12:50:46    阅读次数:132
命令行方式运行yii2程序
测试环境,yii 2.0.3版本web访问方式,控制器放在controllers目录下 ,浏览器访问如下地址http://127.0.0.1/index.php?r=[controller-name]/[method-name]console访问方式,控制器放在commands目录下./yii [c...
分类:其他好文   时间:2015-06-04 22:17:00    阅读次数:155
Yii2 GridView自定义链接之重写 ActionColumn
最近刚开始用yii2,真是超棒的,但是也有许多不足的地方,今天要说的就是GridView链接问题。 $dataProvider, 'filterModel' => $searchModel, 'columns' => [ ['class' => 'yii\grid\Seri...
分类:其他好文   时间:2015-06-03 23:18:13    阅读次数:260
yii2 apns
yii2+安装apns参考https://github.com/bryglen/yii2-apns-gcmInstallationThepreferredwaytoinstallthisextensionisthroughcomposer.Eitherrunphpcomposer.pharrequire--prefer-distbryglen/yii2-apns-gcm"dev-master" 如果没有使用git去掉dev-master,使用 phpcomposer.pharre..
分类:其他好文   时间:2015-06-03 19:46:32    阅读次数:256
yii2 restfulapi moudules 模块下的接口
之前写的apicontroller都是在根目录下的controllers但是我们也会在moudules下建立接口1.我们用gii建立一个模块叫test 2.生成之后,按照提示,将下面这段话,放到main.php的modules下 'test' => [ 'class' => 'backend\mod...
分类:Windows程序   时间:2015-06-03 15:29:06    阅读次数:306
Yii2 和Yii1 视频教程
点击到网盘下载:密码:t9h7
分类:其他好文   时间:2015-06-03 10:07:10    阅读次数:126
yii2 urlmanager的配置
怎样把localhost/index.php?r=user变为localhost/user1.修改backend/config/main.php,在components数组中增加 'urlManager' => [ 'enablePrettyUrl' => true, 'showScriptName...
分类:Web程序   时间:2015-05-29 17:36:57    阅读次数:179
yii2 restfulapi QueryParamAuth验证
1.user表数据结构 2.修改advanced/common/models/User.php use yii\web\IdentityInterface; class User extends ActiveRecord implements IdentityInterface { //增加方法 p...
分类:Windows程序   时间:2015-05-29 17:25:34    阅读次数:187
yii2 restfulapi 的配置和访问
给user写相关接口配置:修改UserController.php use yii\rest\ActiveController; use yii\helpers\ArrayHelper; use yii\web\Response; class UserController extends Activ...
分类:Windows程序   时间:2015-05-29 17:15:10    阅读次数:179
yii2事务运用举例
直接上代码:$db = Yii::$app->db;$transaction = $db->beginTransaction(); //开启事务try { // 更新member表 $db->createCommand()->update('member',[ 'level' ...
分类:其他好文   时间:2015-05-29 15:23:23    阅读次数:122
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!