function editAction() { $this->loadLayout(); $this->_setActiveMenu('vaf'); if ($this->getRequest()->getParam('message')) { $finder = new VF_Note_Finder(); $id = $this->getRequest()->getParam('id'); $message = $this->getRequest()->getParam('message'); $finder->update($id, $message); $block = $this->getLayout()->createBlock('adminhtml/manage', 'vafnote'); $block->setTemplate('vf/vafnote/manage.phtml'); $this->_addContent($block); $this->renderLayout(); return; } $block = $this->getLayout()->createBlock('adminhtml/edit', 'vafnote'); $block->id = $this->getRequest()->getParam('id'); $block->setTemplate('vf/vafnote/edit.phtml'); $this->_addContent($block); $this->renderLayout(); }