public function faqsAction()
 {
     //print_r(FM_Components_Util_Faq::getFaqs(array('orgId'=>'0')));exit;
     $page = new FM_Components_Util_FaqPage(array('active' => 1));
     $this->view->layout()->header = $this->view->partial('headers/mission.phtml', array('sel' => 1, 'header' => $page->getCarousel()));
     $this->view->headline = $page->getTitle();
     $this->view->headerImg = $page->getHeader();
     $this->view->faqs = $this->view->partial('utilities/parts/faq.phtml', array('faqs' => FM_Components_Util_Faq::getFaqs(array('orgId' => $this->_request->getParam('orgId')))));
 }
 public function ajaxupdatefaqAction()
 {
     switch ($_POST['action']) {
         case 'popedit':
             $faq = new FM_Components_Util_Faq(array('id' => $_POST['id']));
             print Zend_Json::encode($faq->toArray());
             exit;
         case 'delete':
             if (FM_Components_Util_Faq::delete(array('id' => $_POST['id']))) {
                 print $_POST['id'];
                 exit;
             } else {
                 print 'false';
                 exit;
             }
     }
 }