日本語化しててちょっと追ったので備忘。 次の優先順に決まると思われる。 リクエストパラメータ中の'lang' URLでmod_rewriteで置換される部分に「言語名+/」で該当したもの(別名も可) $_SESSION['lang'] $_SERVER['HTTP_ACCEPT_LANGUAGE'] AK_AVAILABLE_LOCALES(定数)
Akelosフレームワーク独自のテンプレートSintagsについての日本語訳 http://bobchin.net/akelos/sintags.html モノホンはこちら http://www.bermi.org/projects/sintags そんなに複雑じゃないみたい。 scaffoldでテンプレートみるためには、生成時に--sintagsつけるとよいようだ。 script/generate scaffold Post Blog --sintagsとりあえず { } で囲めば変数を出力してくれる。 オブジェクトの属性については、"."で区切る。配列のキーの場合は"-"で区切るとよろし。 単純なif文の場合は、前に"?"をつけると。 ループも{loop var}ででけると。自動的にカウンタと奇数偶数の判断値とキーが取得できると。
いつのまにかscaffoldのtimestampの部分が直ってました。 念のため覚え書き。 POSTしたデータはコントローラで$this->params['post']で取得できるようだ。 これをモデルにセットするわけですが、setAttributesメソッドを呼びます。 この際にPOSTしたデータで"[A-Za-z0-9_]+([1-5]i)"な感じのクエリーは連結されて"y-m-d h:m"な感じになるみたい。 array( 'posted_at(1i)' => '2007', 'posted_at(2i)' => '08', 'posted_at(3i)' => '21', 'posted_at(4i)' => '12', 'posted_at(5i)' => '34', ) => "posted_at" => "2007-08-21 12:34"
Creating delightful online experiences Hello!, we are Alicia Sadurní and Bermi Ferrer. We have been creating online products and e-commerce platforms since we launched Bermi Labs in Barcelona back in 2008. Before that, we had spent eight years as Webmasters (yes, we are that old). Our projects 2020-present Holdings.dev We are creating an Investment Performance Monitoring platform designed to inter
Creating delightful online experiences Hello!, we are Alicia Sadurní and Bermi Ferrer. We have been creating online products and e-commerce platforms since we launched Bermi Labs in Barcelona back in 2008. Before that, we had spent eight years as Webmasters (yes, we are that old). Our projects 2020-present Holdings.dev We are creating an Investment Performance Monitoring platform designed to inter
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く