CodeIgniter 4 Redirection Complete Tutorial - Online …

Redirection means transferring a URL to a different location (URL). For example we have a Add Form page. After submitting POST data to server, we need to redirect user to List page. So, from this concept we can do. Redirection will be defined in controllers to point to locations. CodeIgniter 4 Redirection in Depth We are going to add few routes.

CodeIgniter - Page Redirection - tutorialspoint.com

CodeIgniter makes this job easy for us. The redirect () function is used for this purpose. The first argument can have two types of URI. We can pass full site URL or URI segments to the controller you want to direct. The second optional parameter can have any of the three values from auto, location or refresh. The default is auto.

return redirect()->back(); - CodeIgniter

Maybe add a log_message() just before the redirect to see if it really get to this point and nothing crashes in the email() call? CodeIgniter 4 tutorials (EN/FR) - https ... CodeIgniter is a powerful PHP framework with a very small footprint, built for developers who need a simple and elegant toolkit to create full-featured web applications. ...

codeigniter use of redirect() - Stack Overflow

6. It's bad practice to use redirects like that; you're basically doubling the # of server requests. If you don't want to have the function names in the URL, just have the form POST to the controller index () function, and call the function you need based on some criteria such as what was passed from the forms POST data: