![]() |
Repopulating in constructor form using form_validation class - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Repopulating in constructor form using form_validation class (/showthread.php?tid=14379) |
Repopulating in constructor form using form_validation class - El Forum - 12-31-2008 [eluser]Chicken's Egg[/eluser] I am migrating my website from CodeIgniter 1.6.3 to 1.7.0. I'm trying to alter the code so the new form_validation library will be used, but I keep having problems repopulating my form. I have a controller called Blog with a function called config(). This function in the controller shows a configuration screen - which shows the current configuration of my weblog - which I load from a database. The form gets populated as wished and changes I make are - after I post the form - stored correctly in the database. So far so good. However, after posting the form the form is empty! Set_value doesn't seem to set the values I posted. My question is: Is it forbidden to use set_value() in the controller as shown below? This is a part of my controller: Code: // Configuration for this module P.s. The above is an abstract. Helpers, Libraries, Models and so on are loaded in the constructor. |