I am impleting a CRUD controller at the moment, and in my edit action, I have to retrieve the data from the db and then insert the values in the form. But it doesnt work. From what I read I guess it could be linked with the form filtering, but I didnt find how to manage it.
I am using a Dojo form.
- Code: Select all
//in the editAction
[...]
//retrieve data from db
$data = $obj->select();
$form->populate($data); //this doesnt work!!!
$this->view->form = $form;
return $this->render('/edit');
Your help would be much appreciated!

