Welcome Guest, Not a member yet? Register   Sign In
Control Structures (If then... else)
#1

Hello.
Is it posiible to create a function using if (xxxx=A) then {do something} else {do something else} in a model or in a controller? The validation rules in a model operate in checking the input of a single field.
But in order to make a decision and control the flow of an app is something moreĀ  complicated. How is this done in Codeigniter?
Reply
#2

See https://www.php.net/manual/en/control-structures.if.php
Reply




Theme © iAndrew 2016 - Forum software by © MyBB