Welcome Guest, Not a member yet? Register   Sign In
Form validation in codeigniter does not seem DRY
#7

(This post was last modified: 10-25-2015, 01:05 AM by ignitedcms.)

No what I meant is have have two views, one specifically for inserting and one for updating, but then call the same controller which has conditional logic to do either the insert or update.

For processing more than one post variable, there are many examples, I am using the following as some sort of work around. Not sure if it is best practice.

http://stackoverflow.com/questions/48226...o-callback



And I am using something like this for conditional logic in the view.

http://stackoverflow.com/questions/14382...d-on-value

Would love to hear if you have any better ideas.
Practical guide to IgnitedCMS - Book coming soon, www.ignitedcms.com
Reply


Messages In This Thread
RE: Form validation in codeigniter does not seem DRY - by ignitedcms - 10-25-2015, 12:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB