flash
The flash method uses the default key set by setFlash(). You can also retrieve specific keys in the session. For example, the Auth component sets all of its Session messages under the 'auth' key
// Controller code$this->Session->setFlash('My Message');// In view$session->flash();// outputs "<div id='flashMessage' class='message'>My Message</div>"// output the AuthComponent Session message, if set.$session->flash('auth');


Коментарии:
Добавить коментарий