Populate model from a form submission |
[eluser]juddmuir[/eluser]
Hi, This is a very common requirement: - display form for user input - receive form data - update database I was just wondering if there was any existing/standard code that receives a form and then populates a given model's variables? Something like: $userdetails = &new;Users_model(); $userdetails->readForm(); $userdetails->persist(); Thanks in advance for any replies :-)
[eluser]GSV Sleeper Service[/eluser]
the Doctrine ORM can do something similar, some example code. Code: $address = new Address; take a look - http://www.doctrine-project.org/
[eluser]juddmuir[/eluser]
I was hoping for something more CI-specifc! But thank-you. |
Welcome Guest, Not a member yet? Register Sign In |