Welcome Guest, Not a member yet? Register   Sign In
Basic Form question - just can't recall how!
#5

(02-17-2015, 01:06 PM)Avenirer Wrote: As I see it, you have no validation rules set: you do a form_validation->run() but without the validating rules. To redisplay the view, you should take the staff id from the hidden form element, and with it, you should do the same as you've done in the edit_staff method.

The form validation is loaded from the config file.

Surely just copying the code from the other controller isn't the way to go, is it? And a simple redirect to the edit form controller will simply overwrite what the user entered, won't it?
Reply


Messages In This Thread
RE: Basic Form question - just can't recall how! - by blackbulldog - 02-17-2015, 01:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB