Welcome Guest, Not a member yet? Register   Sign In
view and terminate
#1

On CI3 if I want to view pages :

PHP Code:
$this->load->view('paket/list.min.html'); 


That automatically exit. So I do check like this

PHP Code:
if( ! $check ){
 
    $this->load->view('page_not_found.min.html');
}
// process something
$this->load->view('page_success'); 
And when check fails, then page_success wont executed.
How to do that in CI4? Did it safe to just call exit() ?
Reply


Messages In This Thread
view and terminate - by anthos1984 - 07-25-2018, 04:30 PM
RE: view and terminate - by HTLove - 07-25-2018, 07:55 PM
RE: view and terminate - by John_Betong - 07-25-2018, 07:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB