本文整理汇总了PHP中FormBuilder::submit方法的典型用法代码示例。如果您正苦于以下问题:PHP FormBuilder::submit方法的具体用法?PHP FormBuilder::submit怎么用?PHP FormBuilder::submit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FormBuilder
的用法示例。
在下文中一共展示了FormBuilder::submit方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: FormBuilder
<?php
require '../../inc/admin/config.php';
$session->auth_or_redirect('admin', '/', true);
$admin_title = 'Manage Testimonials';
$admin_subtitle = 'Add New Testimonial';
include ROOT . '/inc/admin/header.php';
?>
<p><a href="/admin">Back to Admin Home</a></p>
<p><a href="./">Back to Testimonials</a></p>
<div id="testimonials_new">
<?php
$form = new FormBuilder(array('model' => 'testimonial', 'action' => 'new', 'method' => 'post'));
?>
<?php
include './_form.php';
?>
<?php
echo $form->submit(array('value' => 'Add'));
?>
<?php
echo $form->end();
?>
</div>
<?php
include ROOT . '/inc/admin/footer.php';
示例2: FormBuilder
$admin_title = 'Manage Auth Codes';
$admin_subtitle = 'Edit Auth Code';
include(ROOT.'/inc/admin/header.php');
$auth_code = new AuthCode;
$auth_code = $auth_code->find($_GET['id']);
?>
<p><a href="/admin">Back to Admin Home</a></p>
<p><a href="./">Back to Auth Codes</a></p>
<div id="auth_codes_edit">
<?php
$form = new FormBuilder(array('model' => $auth_code, 'action' => 'edit', 'method' => 'post'));
?>
<?php
include './_form.php';
?>
<?php
echo $form->submit(array('value' => 'Save'));
?>
<?php
echo $form->end();
?>
</div>
<?
include(ROOT.'/inc/admin/footer.php');
?>