I have been experimenting with ATK4 for a while now and it's just wonderful!
Migrating to 4.2 I came across a problem with Forms updated and not returning the inserted id.
Here is an example:
class page_kids_new extends Page {
function init() {
parent::init();
$this -> add('H1') -> set('New Kid');
$f = $this -> add('Form');
$f -> setModel('Kid');
$f -> addSubmit('Opslaan');
if ($f -> isSubmitted()) {
$id = $f -> update();
$js = $this -> js() -> univ() -> successMessage('Record Saved # ' . $id);
$js -> execute();
}
}
}
The data saves nicely in the database (new record).
For some reason it's returning the Form Object. Output to browser is: Record Saved # Object Form(boaadmin_kids_new_form)
Hope someone can help. Thanks in advance.