2012/05/27

任意の場所で Auth(User)情報を使いたいとき


【View】
session ヘルパーを使う
$session->read('Auth.User.id');
【Controller】
Session コンポーネントを使う

参考)



0 件のコメント: