Stop controller at this point, run other method |
In index of my Main.php controller I have something like this:
PHP Code: $check = $this->Logier->check_address($url);
That's pretty much exactly the same as what you had, because you used if/else if/else. Break won't do anything for you, since you're not in a loop. If it makes you happy, use exit or die instead.
In some cases, switch is a better alternative:
PHP Code: $check = $this->Logier->check_address($url); |
Welcome Guest, Not a member yet? Register Sign In |