Reading Post values into an Object

Tequila allow you to read objects from the page $_POST, simply:

At the controller page:

$myobj = new obj_type();

$this->readPost($myobj);

* You can read any amount of different objects, simply repeat the 2 lines above

Now you can save the full object or do some other action:

$model->save($myobj);

You might be interested in:

Back to manuals