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

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

Code:
if($var === false){
   $this->method();
   exit;
}

$this->otherMethod();

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.


Messages In This Thread
Halting script execution - by El Forum - 07-23-2007, 08:08 AM
Halting script execution - by El Forum - 07-23-2007, 12:15 PM
Halting script execution - by El Forum - 07-23-2007, 01:44 PM
Halting script execution - by El Forum - 07-23-2007, 02:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB