Form validation in codeigniter does not seem DRY |
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
|
Welcome Guest, Not a member yet? Register Sign In |