Example #1
0
 /**
  * Get form title to reload for language switching
  *
  * @return void
  */
 public function reloadAction()
 {
     if ($this->_request->isGet()) {
         $tmp = 0;
         $id = $this->_request->getParam('FI_FormID');
         $lang = $this->_request->getParam('FI_LanguageID');
         $oForm = new Form();
         $form = $oForm->getFormList($id, $lang);
         $row = $oForm->fetchRow($form);
         if (count($row)) {
             $data = $row->toArray();
             $tmp = $data['FI_Title'];
         }
         echo json_encode($tmp);
     }
     exit;
 }