public function indexAction() { $catProxy = new SxModule_Faq_Category_Proxy(); $faqProxy = new SxModule_Faq_Proxy(); $this->view->cats = $catProxy->getAll($_SESSION['System']['lng'], true); $this->view->faqs = $faqProxy->getAllGroupByParent($_SESSION['System']['lng'], true); }
public function deleteAction() { $id = $this->_getParam('id'); $proxy = new SxModule_Faq_Proxy(); $item = $proxy->getById($id); $item->delete(); $flashMessenger = $this->_helper->getHelper('FlashMessenger'); $flashMessenger->addMessage($this->admin_tmx->_('itemdeleted')); $this->_helper->redirector->gotoSimple('index', 'faqcategory'); }