Flashdata clearing after redirect |
Hello,
Flashdata is clearing up after I do the redirect. My code: PHP Code: public function deleteGroup() But if I remove the redirect and return a view, it works correctly: PHP Code: public function deleteGroup() What am I doing wrong?
Why not just: return redirect()->to('groups')->with('success', 'Grupo remivido com sucesso');
You can append "->withCookies()" to the end of your redirect.
PHP Code: public function deleteGroup() (10-24-2022, 07:11 AM)Thiaxl Wrote: Hello, Typo? 'group' or 'groups'?
What happens if you use:
PHP Code: $session->keepFlashdata('item'); What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |