view and terminate |
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 ){ How to do that in CI4? Did it safe to just call exit() ? (07-25-2018, 04:30 PM)anthos1984 Wrote: On CI3 if I want to view pages : You can use: PHP Code: if( ! $check ){ Thanks
Check the manual for the array of parameters that can be passed so that the view function returns a string.. which may later be tested or displayed.
Adding an else clause to the if statement may also help. |
Welcome Guest, Not a member yet? Register Sign In |