Own validation rules with CodeIgniter >4.5 |
ozornick Wrote:I would like to remind you that some people don't use anything: neither groups nor classes. They create them in controllersYes and as I said, CodeIgniter gives you that freedom. This forum is for best practices and that's what the OP asked. What you consider a best practice may differ. ozornick Wrote:You are wrong about $this‐>validator, the object will appear only after validation, so you can’t work with it before that.You're absolutely right about that, the could should be: PHP Code: if($this->validateData($data, 'newsletter')) |
Messages In This Thread |
Own validation rules with CodeIgniter >4.5 - by minsk832 - 02-05-2025, 09:08 AM
RE: Own validation rules with CodeIgniter >4.5 - by ozornick - 02-05-2025, 12:35 PM
RE: Own validation rules with CodeIgniter >4.5 - by minsk832 - 02-05-2025, 02:27 PM
RE: Own validation rules with CodeIgniter >4.5 - by grimpirate - 02-05-2025, 07:13 PM
RE: Own validation rules with CodeIgniter >4.5 - by ozornick - 02-05-2025, 10:36 PM
RE: Own validation rules with CodeIgniter >4.5 - by minsk832 - 02-07-2025, 04:49 PM
RE: Own validation rules with CodeIgniter >4.5 - by grimpirate - 02-07-2025, 06:31 PM
RE: Own validation rules with CodeIgniter >4.5 - by ozornick - 02-08-2025, 12:33 AM
RE: Own validation rules with CodeIgniter >4.5 - by grimpirate - 02-08-2025, 11:26 AM
RE: Own validation rules with CodeIgniter >4.5 - by ozornick - 02-08-2025, 01:38 PM
RE: Own validation rules with CodeIgniter >4.5 - by grimpirate - 02-08-2025, 02:28 PM
|