We all know that there is a TbEditableDetailView widget as provided by Yiibooster with the code as below
$this->widget(
'bootstrap.widgets.TbEditableDetailView',
array(
'data' => $loggedinUserModel,
'url' => $this->createUrl('Profile/UpdateRecords'),
'attributes' => array(
'Fname', 'Lname', 'Email',
)
)
);
How do I update the record shown in the database? I know there is something like code below, but it doesnot update the database! Please help
public function actionUpdateRecords()
{
$es = new EditableSaver('User');
$es->update();
}