![]() |
Control Structures (If then... else) - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Control Structures (If then... else) (/showthread.php?tid=83112) |
Control Structures (If then... else) - padam - 09-21-2022 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? RE: Control Structures (If then... else) - kenjis - 09-21-2022 See https://www.php.net/manual/en/control-structures.if.php |