本文整理汇总了PHP中Forms::getForm方法的典型用法代码示例。如果您正苦于以下问题:PHP Forms::getForm方法的具体用法?PHP Forms::getForm怎么用?PHP Forms::getForm使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Forms
的用法示例。
在下文中一共展示了Forms::getForm方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: index
public function index()
{
ipAddJs('Ip/Internal/Config/assets/config.js');
ipAddCss('Ip/Internal/Config/assets/config.css');
$form = Forms::getForm();
$advancedForm = false;
if (ipAdminPermission('Config advanced')) {
$advancedForm = Forms::getAdvancedForm();
}
$data = array('form' => $form, 'advancedForm' => $advancedForm);
return ipView('view/configWindow.php', $data)->render();
}
示例2: edit
function edit()
{
$model = new Forms();
$form = $model->getForm($_GET['id']);
View::render('forms/addform', array('formpath' => 'acteditform', 'form' => $form));
}
示例3: Forms
<?php
include_once "../includes/webservice.inc.php";
$webService = new Webservices_Writer();
$webService->init();
$formObj = new Forms();
$data = isset($_POST['data']) ? $_POST['data'] : '';
if ($result = $formObj->getForm($data)) {
$webService->createXMLInstance();
$webService->appendArrayToRootNode('', $result);
$webService->displayXML();
} else {
$xmls = $webService->errorXML(join(",", $formObj->errorMessages));
$webService->outputXML($xmls);
}