/**
  * @Request({"id", "data"}, csrf=true)
  */
 public function saveAction($id, $data)
 {
     if (!$id || !($record = TestBD::find($id))) {
         App::abort(404, __('Record not found.'));
     }
     $record->save($data);
     return ['res' => 'success'];
 }
 public function indexAction()
 {
     $fields = TestBD::find(1);
     return ['$view' => ['title' => 'ToDo BD tab2', 'name' => 'todobd:views/admin/index.php'], '$data' => ['testtable' => $fields]];
 }