Ejemplo n.º 1
0
 public function formObject()
 {
     $model = new Genre($this->data->id);
     $this->data->forUpdate = $this->data->id != '';
     $this->data->object = $model->getData();
     $this->data->title = $this->data->forUpdate ? $model->getDescription() : _M("New Genre");
     $this->data->save = "@fnbr20/admin/genre/save/" . $model->getId() . '|formObject';
     $this->data->delete = "@fnbr20/admin/genre/delete/" . $model->getId() . '|formObject';
     $this->render();
 }