function indexAction() { $finder = new VF_Note_Finder(); if (isset($_GET['code']) && isset($_GET['message'])) { $finder->insert($_GET['code'], $_GET['message']); } $this->loadLayout(); $this->_setActiveMenu('vaf'); $block = $this->getLayout()->createBlock('adminhtml/manage', 'vafnote'); if ($this->getRequest()->getParam('delete')) { if ($this->getRequest()->getParam('confirm')) { $finder->delete($this->getRequest()->getParam('id')); $block->setTemplate('vf/vafnote/manage.phtml'); } else { $block->setTemplate('vf/vafnote/delete.phtml'); } } else { $block->setTemplate('vf/vafnote/manage.phtml'); } $this->_addContent($block); $this->renderLayout(); }