public function editListItemAction() { $id = $this->_getParam('id', null); $populate = isset($id) ? true : false; $historyService = new Application_Service_HistoryService(); $form = $historyService->makeHistoryItemForm($id, $populate); $this->view->form = $form; $this->view->dialog = $this->view->render('playouthistory/dialog.phtml'); unset($this->view->form); }