/** * Shows the messages set up in Views. * */ public static function flash() { $messages = Session::read('flash_message'); if ($messages) { $type = Session::read('flash_type'); Session::delete('flash_message'); Session::delete('flash_type'); return View::quickRender('elements/message', array('message' => implode('<br />', $messages), 'type' => $type)); } }