CI4 (Codeigniter 4) redirect function or method

as per CI 4

use

return redirect()->to('url'); 

if you are using route then use

return redirect()->route('named_route');

Comments

Popular posts from this blog

Frequently asked: Vue.JS Interview Questions and Answers

Base URL Setting in Codeigniter

How To Secure Apache with Let's Encrypt on Ubuntu (Digital Ocean)