Customized 404 page in PHP Phalcon framework
在一般狀況下其實不需要自訂404 page也不會怎麼樣,但是如果用 phalcon dev tools 做 CRUD 頁面出來,有些狀況可能是不需要 create 資料的,比方說對 log 只需要看,沒有道理從頁面上手動 create
在一般狀況下其實不需要自訂404 page也不會怎麼樣,但是如果用 phalcon dev tools 做 CRUD 頁面出來,有些狀況可能是不需要 create 資料的,比方說對 log 只需要看,沒有道理從頁面上手動 create
人總是會有手殘眼糊腦弱的時候,總要有補救辦法。
最常用到的狀況大概就是在新開的 branch 上做了很久,但是自以為是在 master 上,時間久了要 merge 卻是個眼花撩亂,只好直接拿這 branch 蓋掉 master。
因為在 centos 7 上面要做 swapfile, 結果用 fallocate 出來的不能用,所以順便查一下
預設 node.js 的 log file 會一直 append 上去,所以結果就是越來越多直到爆炸為止
主要參考這篇跟這篇 有些實用的命令另列於下 $ sudo apache2ctl configtest
主要參考 http://www.uptimemadeeasy.com/linux/mysql-migrate-users-server-server/
最近要拿 ab test 來做 http service 測試
基本上可以直接參考這篇,有些設定可以參考這篇
Sometimes you need a JSON RESTful api interface in a MVC controller, which usually generate HTML results to users. public function createAction() { $this->view->disable(); $resp = new \Phalcon\Http\Response(); $resp->setHeader(“Content-Type”, “application/json”); //….. $resp->send(); return; }