2015-03-08から1日間の記事一覧
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', ' - ログイン'); ?>