2015-03-01から1ヶ月間の記事一覧
参考: Email パッケージの使用方法 Fuelphp:Fuelphpで基本的なメール送信処理 コントローラーで下記を読み込むらしい。 \Package::load('email'); 下記みたいな感じでとりあえずできた。日本語文字化け対策で、上記参考サイトの、■ Emailクラスの設定ファ…
参考:Fuelphp:Inputクラスを使用し、$GETや$POSTの値を取得する Input::get(); Input::post(); Input::post('hoge'); 引数があるとそれだけ取得する。
参考:Event Aggregator var MyApp = new Backbone.Marionette.Application(); // Alert the user on the 'minutePassed' event MyApp.vent.on("minutePassed", function(someData){ alert("Received", someData); }); // This will emit an event with the …
model.save(data, options); 第一引数は、登録するデータ。nullならモデルにセットされているデータが使われる。optoinsはsuccessとかerrorとか。 this.model.save(null, { success: function(mod, res, opt){ console.log(res); }, error: function(mod, xh…
例えば、headerのtitleを変更したい場合、 View/Layouts/default.ctpのtitleタグ内を下記のようにする。 fetch('title'); ?> そして、view内に下記を追記すると、サイト名 - ログインというtitleになる。 assign('title', ' - ログイン'); ?>