is there any possible way to send parameters within the redirection function from Codeigniter 4? Important, it is a named route:
$routes->get('edit', 'Test_Controller::editTest/$1', ["as" => "editTest", "filter" => 'testFilter']);
And i want to do a redirect like this:
this works fine:
return $this->redirectTo('test/edit/' . $id1);
this would be nice, if it works:
return redirect('editTest', array($passingID));
or
return redirect('editTest')->with($passingID);
Why? I have HMVC and I would like to name every module with the same routes but different functions ofc. And this would help me having same site urls. (edit, add, a.s.o.)