ユーザ用ツール

サイト用ツール

Writing /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/lei_wiki/data/cache/4/4171f332c1463dc689d1ec8c696baafd.i failed
Unable to save cache file. Hint: disk full; file permissions; safe_mode setting.
Writing /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/lei_wiki/data/cache/4/4171f332c1463dc689d1ec8c696baafd.metadata failed

cakephpの小技
Writing /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/lei_wiki/data/cache/4/4171f332c1463dc689d1ec8c696baafd.i failed
Unable to save cache file. Hint: disk full; file permissions; safe_mode setting.
Writing /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/lei_wiki/data/cache/4/4171f332c1463dc689d1ec8c696baafd.xhtml failed

cakephpの小技

本番環境で不要なエラーを表示させない方法

<?php
# Config/core.php
	Configure::write('debug', 0);

404 Not Found を発生させる方法

throw new NotFoundException();

400系のエラーページのビューはここ。

app/View/Errors/error400.ctp

403 Forbidden 用の ForbiddenException なんかもよく使いそう。

cakephpの小技.txt · 最終更新: 2015/05/11 11:14 by luis_lee