码迷,mamicode.com
首页 >  
搜索关键字:yii2 restfulapi    ( 1446个结果
YII2笔记之二
命名说明,执行流程,user组件原理,布局文件使用,form生成,读写数据库表,批量、自动操作
分类:其他好文   时间:2015-10-21 10:27:22    阅读次数:148
composer安装yii2或者laravel报错
大概的信息就是提示让登陆github,然后就报错了Could not fetch https://api.github.com/authorizations, enter your GitHub credentials to go over the API rate limitThe credent...
分类:其他好文   时间:2015-10-19 07:09:08    阅读次数:240
YII2笔记之一
安装yii,basic和advanced模版对比,GII工具的使用
分类:其他好文   时间:2015-10-16 11:47:29    阅读次数:139
yii2 提示Module not inserted due to validation error.
项目的后台更改和添加文章突然无效了,查看系统日志发现是Module not inserted due to validation error.其实原因很简单,在表单中加入了百度编辑器,在给编辑器命名的时候使用了name="content",由于yii2 view页面在提交表单后,控制器要使用$mod...
分类:其他好文   时间:2015-10-15 18:16:39    阅读次数:326
Yii2中应用子模块下的内容
public function actionIndex(){ $article=\YII::$app->getModule('article'); $article->runAction("default/index");}namespaceuse \yii\base\component;class...
分类:其他好文   时间:2015-10-14 19:49:10    阅读次数:142
Yii2.0 执行流程分析
1 index.php 2 ---->引入 vendor/auto_load.php 3 auto_load.php 4 ---->引入 ventor/composer/autoload_real.php 5 ---->执行 ComposerAutoloaderInit24...
分类:其他好文   时间:2015-10-13 13:53:18    阅读次数:197
yii2URL美化
yii2的url域名/index.php?r=site%2Findex实际为域名/index.php?r=site/index可以美化下可以在main.php中配置'components' => [ …… 'urlManager'=> [ 'enabl...
分类:Web程序   时间:2015-10-09 11:54:06    阅读次数:197
ubuntu14.04安装mcrypt扩展
使用YII2的时候,提示ThemcryptPHPextensionisnotinstalled。执行下面的步骤:sudoapt-getinstallphp5-mcryptlibmcrypt4libmcrypt-dev重启php-fpm乃至apache2均没有作用。至于网上说的使用mcrypt.ini做软链接,更是在conf.d目录下面都没有看到。最后尝试:sudophp5enmodmcrypts..
分类:系统相关   时间:2015-10-09 00:46:41    阅读次数:225
理解依赖注入(Dependency Injection)
理解依赖注入Yii2.0 使用了依赖注入的思想。正是使用这种模式,使得Yii2异常灵活和强大。千万不要以为这是很玄乎的东西,看完下面的两个例子就懂了。class SessionStorage{ function __construct($cookieName = 'PHP_SESS_ID') {.....
分类:其他好文   时间:2015-10-08 23:02:56    阅读次数:235
Yii2 模块module笔记
包含内容:使用GII新建module建立子模块在其他控制器中调用模块的操作(action)1. 使用Gii工具新建module注意模块的路径,我们没有写backend\modules\Article。多了一层article目录是为了防止如果有多个模块共用同一文件。2. 在backend\config...
分类:其他好文   时间:2015-10-05 11:38:29    阅读次数:230
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!