Basic Form question - just can't recall how! |
(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? |
Messages In This Thread |
Basic Form question - just can't recall how! - by blackbulldog - 02-17-2015, 11:49 AM
RE: Basic Form question - just can't recall how! - by paralogizing - 02-17-2015, 12:32 PM
RE: Basic Form question - just can't recall how! - by blackbulldog - 02-17-2015, 12:45 PM
RE: Basic Form question - just can't recall how! - by Avenirer - 02-17-2015, 01:06 PM
RE: Basic Form question - just can't recall how! - by blackbulldog - 02-17-2015, 01:12 PM
RE: Basic Form question - just can't recall how! - by Avenirer - 02-17-2015, 01:40 PM
RE: Basic Form question - just can't recall how! - by blackbulldog - 02-18-2015, 01:38 AM
RE: Basic Form question - just can't recall how! - by Avenirer - 02-18-2015, 01:44 AM
|