Welcome Guest, Not a member yet? Register   Sign In
Redirection inside controller
#6

You must need to put if and else condition for example

public function index
($jack) {
if($jack === 'John') {
$this->error404();
}else{
$this->load->view('mypost');
}
}

OR

public function index
($jack) {
if($jack === 'John') {
$this->error404();
exit;
}
$this->load->view('mypost');
}
Reply


Messages In This Thread
Redirection inside controller - by yuryn1961 - 10-01-2018, 09:54 PM
RE: Redirection inside controller - by Pertti - 10-01-2018, 11:11 PM
RE: Redirection inside controller - by yuryn1961 - 10-02-2018, 09:35 AM
RE: Redirection inside controller - by yuryn1961 - 10-02-2018, 09:32 AM
RE: Redirection inside controller - by Gurutechnolabs - 11-06-2018, 07:14 AM
RE: Redirection inside controller - by InsiteFX - 11-06-2018, 10:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB