タグ

ブックマーク / neoinspire.net (3)

  • Apple のアプリリジェクトのお話 ← Neo Inspiration

    現在製作中のアプリはツイッターライクなやつなんですが、 CGMというかユーザが投稿できるタイプのアプリにはEULAとか削除のポリシーとか 結構色々と要求されます。 で高確率で来るのがこのメッセージ - Use Moderators to flag and remove inappropriate content - Require that your users agree to terms (EULA) and these terms must be clear that there's no tolerance for objectionable content - Users need a way to flag or report objectionable content and/or users generating this content - Developer must

    edajima
    edajima 2014/08/11
  • cakePHP の $this->log() が素敵すぎる ← Neo Inspiration

    controller と view に分かれていると Arrayに何が入ってるとかのデバッグが非常にめんどくさくて ちゃっと print_r したいときとかあると思いますが。 俺はこれ使ってます。 $this->log(Array,LOG_DEBUG); これやると /app/tmp/logs/debug.log ってのが出来てそこに 変数をがーーっと print_r したのが展開されてます。 ただのテキストファイルなんでそのまま見れるし。 もちろんアソシエーションしてあるとそれも全部表示されてます。 Array ( [0] => Array ( [users_table] => Array ( [id] => 1 [name] => お名前 ) [profile_table] => Array ( [id] => 1 [password] => パスワード ) ) ) こんなかんじ。 な

  • cake のエラー処理関連 ← Neo Inspiration

    いくらなんでもユーザがミッシングURLをたたいたときに Missing Controller の画面がでるのはひどいな。。。 (Debugモードを0にすると今度はデフォルト真っ白だし!) ということで、エラー画面の修正方法を調査 とりあえず /cake/libs/error.php がデフォで行うエラー処理らしい。 エラー処理も ・単にViewを変えるパターン ・エラー処理そのものを変えるパターン の2種類あるので、まあ、両方調べてみました。 今ある View を変えるだけパターン render()でviewに渡してる名前を全部リストアップして、 その view を /app/views/errors/ の中にファイルとして作成する。 以下14ファイル(これで全部だと 思う・・) error404.thtml missing_action.thtml missing_component_c

    edajima
    edajima 2008/11/25
  • 1