永夜 Blog

在 Yii 2.0 中报错:yii\base\ErrorException: Undefined index: HTTP_ACCEPT 0

Error reported in Yii 2.0: yii\base\errorexception: undefined index: http_accept

浏览量: 43 1. An error is reported in Yii 2.0: yii\base\ErrorException: undefined index: http_accept, as shown in Figure 1 2. Check the runtime log file: /api/runtime/logs/app.log 3. The log information of the two requests,...

上传扩展名为:.jpg 的文件,上传失败,提示:不允许 0

When uploading a file based on Yii 2.0, the list of files that can be uploaded for upload has been added: .jpg, but the solution is still not allowed to upload

浏览量: 2 1. List of file extensions that can be uploaded: ogg, pdf, xml, zip, gz, mp4, mp3, wav, webm, gif, jpeg, jpg, png, webp, SVG, SVGZ, TIFF, CSS, CSV, TXT, VCF, VCARD, MOV,...

打开个人博客,Chrome 浏览器提示:你与此网站之间建立的连接不安全,网址左侧显示的安全状态图标为不安全 0

Open a personal blog, the Chrome browser prompts: The solution to the unsafe connection between you and this website

浏览量: 1 1. Open the personal blog, the chrome browser prompts: The connection between you and this website is not safe, and the security status icon displayed on the left side of the URL...

通过运行 composer update 来更新 Yii 2 至最新版本,已将 Yii Framework 从 2.0.15.1 版本升级到 2.0.31 0

Updating Yii 2 to the latest version based on Composer, upgrade Yii Framework from version 2.0.15.1 to 2.0.31

浏览量: 0 1. Composer has been installed before, to ensure the latest version is used. You can update Composer to version 1.9.2 by running composer self-update, as shown in Figure 1 2. Updating Yii...

经过对比分析,发现:afterAction、afterRequest 皆不存在 0

The task of entering the warehouse is successful, and the storage failure needs to be able to query the design and implementation of the release record (specifically implemented in Yii 2.0, when the response status code is 404, 302 When the filter method is not executed: afterAction($action, $result) analysis solution) (2)

浏览量: 0 1. URL:https://www.shuijingwanwq.com/2020/01/08/3797/, when the response status code is 404, 302, the filter method is not executed: afterAction($action, $result) , leaving a problem that needs to be analyzed and solved 2. When the...