Welcome Guest, Not a member yet? Register   Sign In
URL after insert data

Hey guys,

After insert data in DB, the system returns to home page. OK. But, the url stay like 'http://localhost/code4/home/save'. If I refresh the page (F5), the insertation is made again. I want return to 'http://localhost/code4/' only. Do someone help me?

Code from the 'Home' controller:

public function save(){
$usuarioModel= new UsuarioModel();

$dados= $this->request->getPost();

$request= $usuarioModel->save($dados);

echo view('base/header');
//echo view('menu');
echo view('home/index');
echo view('base/footer');


Messages In This Thread
URL after insert data - by Alexcodeig - 04-03-2020, 02:26 PM
RE: URL after insert data - by FoLez - 04-03-2020, 07:49 PM

Theme © iAndrew 2016 - Forum software by © MyBB