It is as risky to believe everything, as it is to believe nothing. - Denis Diderot

Archive for the 'Cakephp' Tag

— [cakephp]Cakephp + sqliteで最軽量なCMSになる

Posted: Jan 8, 2009, 12:51 pm | Author: cyberryo | Category: Dialy | Tags: ,

cakephp
Flashサイトを更新するためのXMLを吐き出すバックエンドシステムに、MTOSやWordpressをいままで使用してたのですが、今回、MTもWPも使えないサーバーにぶち当たりました。。
Read the rest of this entry »


— [cakephp]findAllByを結合した違うテーブルの値でソートする

Posted: Nov 27, 2008, 8:18 pm | Author: cyberryo | Category: Dialy | Tags:


hasManyとかHABTMで結合したモデルをfindAllByしたときに得る配列を、findAllByしてないモデルの値でソートする方法。
Read the rest of this entry »


— [cakephp]デバッグのsqldumpをキレイに出力する

Posted: Nov 27, 2008, 7:50 pm | Author: cyberryo | Category: Dialy | Tags:


cakeデフォルトviewのまま、開発を進める分にはデバッグもsqlダンプもキレイに出力してくれるけど、viewをカスタマイズしてしまった後は、sqlがドカッとプレーンなまま出てきてしまいますよね。。
Read the rest of this entry »


— [cakephp]Ajaxで画像のキャッシュを残さない

Posted: Nov 17, 2008, 3:11 am | Author: cyberryo | Category: Dialy | Tags: , ,


Ajaxで画像をアップロードして更新、表示させるみたいなのを作っていたら、どうしても画像はブラウザにキャッシュされたものが表示されてしまう。。
Read the rest of this entry »


— [cakephp]Cache::engineが便利

Posted: Nov 11, 2008, 1:12 am | Author: cyberryo | Category: Dialy | Tags: ,


ビューのキャッシュはよく使うけど、どうしてもrenderする前のキャッシュが欲しいとき、Cache::engineが便利です。
Read the rest of this entry »