This way I only load the view in question, I want to recharge the entire page.
public function login() {
......
if($this->Auth->user()) {
return $this->redirectUrl();
}
}
public function logout() {
return $this->redirect($this->Auth->logout());
}
No, I want the index, but not only do I want to load the content, if not the whole page as in HTML http-equiv = “refresh” I have an element, which does not refresh