uxff
- uxff 评论了教程 Yii 2.0 编码规范及使用
使用工具强行规范,这只是格式规范。java和go等也在强行使用工具来规范格式。python强行使用语法来规范格式。
- uxff 2016-12-18 已签到连续签到1天,获得了5个金钱
- uxff 2016-01-30 已签到连续签到1天,获得了5个金钱
- uxff 评论了源码 MoBlog一个基于Yii2的博客系统
bower报错了,用类似的方法:
The file or directory to be published does not exist: /home/w/web/moblog/vendor/bower
这个错误解决方法:
vim vendor/yiisoft/yii2/base/Application.php:456行左右:
将此行注释://Yii::setAlias('@bower', $this->_vendorPath . DIRECTORY_SEPARATOR . 'bower');
修改为:
Yii::setAlias('@bower', $this->_vendorPath . DIRECTORY_SEPARATOR . 'bower' . DIRECTORY_SEPARATOR . 'bower-asset');
就是加了个bower-asset子目录。
如果这样改还不生效,要自己手动检查下composer安装markdown等后创建的目录。 好像撰写文章出错了。。。
The file or directory to be published does not exist: /home/w/web/moblog/vendor/npm/bootstrap-markdown
这个错误解决方法:
vim vendor/yiisoft/yii2/base/Application.php:458行左右:
将此行注释://Yii::setAlias('@npm', $this->_vendorPath . DIRECTORY_SEPARATOR . 'npm');
修改为:
Yii::setAlias('@npm', $this->_vendorPath . DIRECTORY_SEPARATOR . 'npm'. DIRECTORY_SEPARATOR . 'npm-asset');
就是加了个npm-asset子目录。
- uxff 评论了源码 MoBlog一个基于Yii2的博客系统
The file or directory to be published does not exist: /home/w/web/moblog/vendor/npm/bootstrap-markdown
这个错误解决方法:
vim vendor/yiisoft/yii2/base/Application.php:458行左右:
将此行注释://Yii::setAlias('@npm', $this->_vendorPath . DIRECTORY_SEPARATOR . 'npm');
修改为:
Yii::setAlias('@npm', $this->_vendorPath . DIRECTORY_SEPARATOR . 'npm'. DIRECTORY_SEPARATOR . 'npm-asset');
就是加了个npm-asset子目录。
- uxff 回复了 laughmaker 的评论
整个框架和原来的不太一样,楼主做了一些修改,对于我这种新手来说,还是有一点吃力啊。
访问后台管理页admin.php的时候,自动跳转到http://localhost/MoBlog/web/admin.php/site/login
然后提示404,有人知道怎么解决么?给点提示吧 - uxff 赞了教程yii2感觉慢的原因
- uxff 2015-08-21 已签到连续签到3天,获得了15个金钱
- uxff 2015-08-20 已签到连续签到2天,获得了10个金钱