Welcome Guest, Not a member yet? Register   Sign In
To much functions!
#6

[eluser]mattpointblank[/eluser]
If your editpage() function uses the validation rules in submitedit(), you may as well combine them into one function and have the form submit to itself - the validation class is built to work like this.

And yeah, use models. Keep your database code separate from your processing code (and keep your views/styling separate from these as well).


Messages In This Thread
To much functions! - by El Forum - 12-10-2009, 09:18 AM
To much functions! - by El Forum - 12-10-2009, 09:22 AM
To much functions! - by El Forum - 12-10-2009, 09:29 AM
To much functions! - by El Forum - 12-10-2009, 10:08 AM
To much functions! - by El Forum - 12-10-2009, 10:11 AM
To much functions! - by El Forum - 12-10-2009, 10:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB