CodeIgniter Forums
Is there a way to auto-load Validation Rules in CodeIgniter? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: Is there a way to auto-load Validation Rules in CodeIgniter? (/showthread.php?tid=86665)



Is there a way to auto-load Validation Rules in CodeIgniter? - HarengaWoltrkr - 02-08-2023

As a veteran CodeIgniter developer, I have experience creating applications based on modules, where each module holds its own code. Namespaces work well with the class auto-loading system. Is it possible to auto-load Validation Rules as well?


RE: Is there a way to auto-load Validation Rules in CodeIgniter? - kenjis - 02-09-2023

Why do you write "[font=Söhne, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji']"?


RE: Is there a way to auto-load Validation Rules in CodeIgniter? - superior - 02-14-2023

(02-09-2023, 06:04 PM)kenjis Wrote: Why do you write "[font=Söhne, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji']"?

It's the editor inside this forum.

@HarengaWoltrkr
I'm writing this directly on 'App\Config\Validation.php', a better approach would be using Registrar so you can define what belongs were.