MiuraKatsu

MiuraKatsu

MiuraKatsu

ツイートの並び順 : 新→古 | 古→新

2012年05月14日(月) 1 tweets

ソース取得:

CakePHP1.3だとCONFIGSってグローバル定数が定義されてたので、本番/開発のconfigをディレクトリ別に用意して切り替えたりしてたんだけど、CakePHP2.0だとCONFIGSみたいなグローバル定数みあたらないのだけど、そういうことできないの? #cakephp

posted at 14:49:58

2011年12月22日(木) 1 tweets

ソース取得:

#cakephpadvent2011 22日目の記事を書きました。 / CakePHP2.0 で FacebookAuthenticateによるAuthの認証 http://t.co/tlqzcBur #cakephp

posted at 07:59:20

2011年09月02日(金) 2 tweets

ソース取得:

具体的には listSources() で返すべきテーブル一覧で何を返すかということなんですが・・・ #cakephp

posted at 10:04:24

cakePHPで悩んでいます。AmazonのProduct Advertising APIを取得するDatasourceをBakeできるのを目標に作っているのですが、Tableをどの単位で扱うかで… region? SearchIndex? それとも…? #cakephp

posted at 10:03:53

2011年08月08日(月) 1 tweets

ソース取得:

APIでやりとりするのだったら、modelよりは、datasourceに実装させて、modelは普通に書くのがよいかなー #cakephp

posted at 12:32:38

2011年05月27日(金) 2 tweets

ソース取得:

要はTestActionにFixture=>false以外を渡すとの先のURLでModelを呼んでるとDispatchされたタイミングで勝手にFixtureを作るけど、こっちが用意したhogehoge_fixuture.phpを呼んでくれないっぽい。#cakephp

posted at 14:55:21

なんとなく分かった。 cake_test_case.phpのTestActionにfixturize渡したときの挙動で変になるっぽい。#cakephp

posted at 14:26:51

2010年10月25日(月) 1 tweets

ソース取得:

[備忘録] view cache利用時も xhprofを表示させたい場合 dispatch.phpの$this->_stop();をreturnにして、index.phpに戻して、xhprof_disable()してxhprof_htmlリンクをechoさせる。 #cakephp

posted at 16:07:11

2010年10月20日(水) 4 tweets

ソース取得:

#cakePHP CacheBehavior、レコードキャッシュの検索条件での消し込みもできるようにした。とりあえずこれでいいか。modelのafterSaveで何をどう消すのか指定して消せば、DBへの毎回アクセスはなくなるはず

posted at 17:29:59

#cakePHP modelから割り当て済みのbehaviorいじれないかな

posted at 15:14:12

#cakephp CacheBehaviorはほぼ完成。config指定ができるようにしたので、durationとか変えるならconfigで。

posted at 13:16:12

#cakephp core.phpのなかでCache::config()に'_cake_core_'と'_cake_model_'って名前のconfigを書けばfile_mapやらdescやらのキャッシュの設定も変えられるみたい。

posted at 11:01:04

2010年10月19日(火) 2 tweets

ソース取得:

#cakephp core.phpでCache::config['default']の設定をしても、durationがconfigure.phpの中で上書きされてる?なんか効かない。configに別名つけてやった方がいいのか? 明日チャレンジ。

posted at 21:32:24

#cakephp CacheBehaviorでfindの結果をCache::writeしてるけど、そのままだと、Cache::config['default']になるので、config値を渡せるようにしたい。

posted at 21:30:11

2010年07月28日(水) 1 tweets

ソース取得:

備忘録:cakePHPでpaginate使うときに、paginateの以外のパラメータを引き回したいときは、$this->params['paging']['model-name']['options']['param-name'] = hogehoge #cakephp

posted at 11:53:57

2010年07月16日(金) 1 tweets

ソース取得:

結局バリデーションどこでやればいいかよくわからん。modelに完全に紐づいていればmodelに書くんだけど、componentでまとめられないかなぁ #cakephp

posted at 16:05:27

2010年03月17日(水) 1 tweets

ソース取得:

AuthComponent->loginRedirectが効かない。正確には'/' に Redirectされてしまう。なぜだー #cakephp

posted at 16:36:54

2010年03月16日(火) 1 tweets

ソース取得:

どうもうまくいかないと思っていたら、Security Component使ってたからまんまForm書くとSessionエラーで弾かれてるようだ。これ先週も同じとこでハマった気がするorz #cakephp

posted at 11:17:01

2010年03月09日(火) 1 tweets

ソース取得:

テーブルによって接続DBを切り替えたいので、controller->loadModelを呼ぶ前にフック掛けたいんだけどどこでloadModelしてるのかわからないので追っかけ中。#cakephp

posted at 17:08:41

2009年08月12日(水) 1 tweets

ソース取得:

ああ、こういう発言に  #cakePHP とかつけりゃいいのか。

posted at 11:35:37

last update 05/27 18:10

ツイート検索

«2012年5月 
 123456
78910111213
14151617181920
21222324252627
28293031   

Recent

Archives

» more...

Friends

» 全てのFriendsを見る...

Hashtags

» 全てのHashtagsを見る...

Stats・Feed