Response::redirect('somewhere')
Chris P wrote on Friday 10th of February 2012:I think you can set "flash_auto_expire" to false in Session config look here
http://docs.fuelphp.com/classes/session/config.html Chris
class Controller_Welcome extends Controller_Template { public function before() { parent::before(); try { if (Sentry::check()) { Response::redirect('home'); } } catch (SentryUserException $e) { Sentry::logout(); } } public function action_test(){ Session::set_flash('success', 'some value'); Response::redirect('welcome/index'); } }This will work if I directly output the view
class Controller_Welcome extends Controller_Template { public function before() { parent::before(); try { if (Sentry::check()) { Response::redirect('home'); } } catch (SentryUserException $e) { Sentry::logout(); } } public function action_test($data = null){ Session::set_flash('success', 'some value'); $this->template->content = View::forge('welcome/index', $data); } }
It looks like you're new here. If you want to get involved, click one of these buttons!