yuwuy
- yuwuy 赞了回答
就按照官方教程composer安装就可以了 不过要有root权限
- yuwuy 评论了扩展 yii2 七牛扩展,上传文件到七牛
最新的7开头的1w多k的七牛扩展上传图片就报错,用之前的9k多kb的正常,不知道乱更新的什么,每次update之后就要重新复制一次之前的七牛扩展
- yuwuy 赞了回复
这是我修改后的 views/layouts/main.php 文件 你参考下吧
<?php /* @var $this \yii\web\View */ /* @var $content string */ use yii\helpers\Html; use yii\bootstrap\Nav; use yii\bootstrap\NavBar; use yii\widgets\Breadcrumbs; use app\assets\AppAsset; ?> <?php $this->beginPage() ?> <!DOCTYPE html> <html lang="<?= Yii::$app->language ?>"> <head> <meta charset="<?= Yii::$app->charset ?>"> <meta name="viewport" content="width=device-width, initial-scale=1"> <?= Html::csrfMetaTags() ?> <title><?= Html::encode($this->title) ?></title> <?php $this->head() ?> </head> <body> <?php $this->beginBody() ?> <div class="wrap"> <?= $content ?> </div> </div> <?php $this->endBody() ?> </body> </html> <?php $this->endPage() ?>