Form validation in codeigniter does not seem DRY |
(10-24-2015, 03:53 PM)iamthwee Wrote: There's some good point brought up here guys! I never thought of creating conditional logic for both insert and update. Although I'm not quite sure it would work in the view files as it is quite complicated and separating does lend itself for easier amends. You don't place the conditional logic in the view. Your view is the form, and this form is the same for inserting, updating and correcting on failed validation. In which scenario would you need to process more than one _post variable? |
Welcome Guest, Not a member yet? Register Sign In |