CodeIgniter Forums
Ideal place for validation? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Ideal place for validation? (/showthread.php?tid=9119)



Ideal place for validation? - El Forum - 06-12-2008

[eluser]EEssam[/eluser]
Hello,

I'm wondering where is the ideal place for the submitted form validation; Controller or Model?

Please advise.


Ideal place for validation? - El Forum - 06-12-2008

[eluser]xwero[/eluser]
before the model. I've changed the CodeIgniter.php file to make that possible. This way you keep the it separate from the rest of your code.