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 init() { $this->view->menu = array('template' => 'system/__modules.phtml', 'active' => 'menu-faq', 'tab' => 'modules'); $config = Zend_Registry::get('config'); $lngs = $config->system->language; $this->view->lngs = $lngs; $proxy = new SxModule_Faq_Category_Proxy(); $this->view->cats = $proxy->getAll($_SESSION['System']['lng']); # Admin taal $systemAdmin = new Zend_Session_Namespace('SystemAdmin'); $this->view->admin_tmx = $this->admin_tmx = new Zend_Translate('tmx', APPLICATION_ROOT . '/application/var/locale/admin/faq.tmx', $systemAdmin->lng); $this->view->admin_menu_tmx = $this->admin_menu_tmx = new Zend_Translate('tmx', APPLICATION_ROOT . '/application/var/locale/admin/menu.tmx', $systemAdmin->lng); $this->view->adminlngs = $adminlngs = $config->systemadmin->language; }
public function deleteAction() { $id = $this->_getParam('id'); $proxy = new SxModule_Faq_Category_Proxy(); $item = $proxy->getById($id); $item->delete(); $flashMessenger = $this->_helper->getHelper('FlashMessenger'); $flashMessenger->addMessage($this->admin_tmx->_('itemdeleted')); $this->_helper->redirector->gotoSimple('index', 'faqcategory'); }