public function getTwitterForm($name, $locale = null, $horizontal = true) { $this->getLanguages(); $table = new Formbuilder_Formbuilder(); $id = $table->getIdByName($name); if (is_numeric($id) == true) { if (file_exists(PIMCORE_PLUGINS_PATH . "/Zendformbuilder/data/form/form_" . $id . ".ini")) { $config = new Zend_Config_Ini(PIMCORE_PLUGINS_PATH . "/Zendformbuilder/data/form/form_" . $id . ".ini", 'config'); $trans = $this->translateForm($id, $locale); Zend_Form::setDefaultTranslator($trans); if ($horizontal == true) { $form = new Twitter_Bootstrap_Form_Horizontal($config->form); } else { $form = new Twitter_Bootstrap_Form_Vertical($config->form); } $form->setDisableTranslator(true); if ($locale != null && $locale != "") { $form->setTranslator($trans); } return $form; } else { return false; } } else { return false; } }