2010-12-01から1ヶ月間の記事一覧

symfonyのcookie保存memo

factory.yamlのsend_http_headersを有効にする response: class: sfWebResponse param: send_http_headers: truesetCookieメソッドの処理の後にsendHttpHeadersメソッドを呼び出さないとcookieに書き込まれなかった getResponse()->setCookie(sfConfig::get(…

effective javaを今更読む

第4章クラスとメンバーへのアクセス可能性を最小限にする 各クラスやメンバーをできる限りアクセスできないようにすべきです。 インスタンスフィールドは、決してpublicにすべきではありません。 publicの可変フィールドを持つクラスは、スレッドセーフでは…

apache shindingの環境構築

ソーシャルアプリの開発環境を作るため構築OS ubuntu 10.10 php 5.2.2apache shindigをダウンロード http://www.apache.org/dist/shindig/2.0.0/shindig-2.0.0-php.zip/var/www/shinding配下に展開http://localhost/shindig/index.phpにアクセスcurlがないと…

symfony 404エラーハンドリングではまったのでメモ

http://symfonyframework.blog92.fc2.com/blog-category-1.html を元にsettings.ymlをいじってみたがなぜか上手くいかなくかなり時間を取った。色々調べていたらwebフォルダのindex.php $configuration = ProjectConfiguration::getApplicationConfiguration…