Welcome Guest, Not a member yet? Register   Sign In
Halting script execution

[eluser]Glen Swinfield[/eluser]
If I were coding a script in php I might do:

if($var === false){


to avoid using too many nested if statements. Can this functionality be replicated while using CI? If you use exit() after calling a method, nothing gets processed.

i do it all the time, but i use return; instead, and it works fine.

[eluser]Glen Swinfield[/eluser]
It strikes me as being completely bizzare that I didn't use return first of all.. :red:

i think i made the same mistake when first using CI as well. brain farts happen. Smile

Theme © iAndrew 2016 - Forum software by © MyBB