Welcome Guest, Not a member yet? Register   Sign In
Central form handeling
#1

[eluser]GrahamDj28[/eluser]
Hi,

I have been using CI for a few years now, and there is one thing that i do not like. That is the way forms are handled.

Does anybody know of a mechanism to centralize the handling of posted forms so that i don't need to validate in every controller that uses a form? The URL used in the action attribute of the form can then be used to redirect after success or failure. That does mean that the posted forms should always be routed to a single place where all the magic happens.

The routing is not a big deal. The problem is setting the rules for the form. I don't want to define my form in one place and define my rules for that form in another.

Anybody here knows how this can be done?

Thanks!


Messages In This Thread
Central form handeling - by El Forum - 10-23-2012, 05:26 AM
Central form handeling - by El Forum - 10-23-2012, 10:16 AM
Central form handeling - by El Forum - 10-23-2012, 11:19 AM
Central form handeling - by El Forum - 10-23-2012, 12:54 PM
Central form handeling - by El Forum - 10-23-2012, 01:19 PM
Central form handeling - by El Forum - 10-23-2012, 01:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB