本文整理汇总了PHP中BaseForm::renderFormTag方法的典型用法代码示例。如果您正苦于以下问题:PHP BaseForm::renderFormTag方法的具体用法?PHP BaseForm::renderFormTag怎么用?PHP BaseForm::renderFormTag使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BaseForm
的用法示例。
在下文中一共展示了BaseForm::renderFormTag方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: renderFormTag
public function renderFormTag($url, array $attributes = array())
{
$result = parent::renderFormTag($url, $attributes);
if (sfConfig::get('app_is_mobile') && opConfig::get('retrieve_uid')) {
$pos = strpos($result, '>');
$head = substr($result, 0, $pos);
$foot = substr($result, $pos);
$result = $head . ' utn' . $foot;
}
return $result;
}
示例2: renderFormTag
/**
* Renders a form tag suitable for the related object.
*
* The method is automatically guessed based on the Doctrine object:
*
* * if the object is new, the method is POST
* * if the object already exists, the method is PUT
*
* @param string $url The URL for the action
* @param array $attributes An array of HTML attributes
*
* @return string An HTML representation of the opening form tag
*
* @see sfForm
*/
public function renderFormTag($url, array $attributes = array())
{
if (!isset($attributes['method'])) {
$attributes['method'] = $this->isNew() ? 'post' : 'put';
}
return parent::renderFormTag($url, $attributes);
}
示例3: __
<?php
slot('submenu');
include_partial('submenu');
end_slot();
?>
<?php
slot('title', __('Make all members join in this %community%'));
?>
<p><?php
echo __('Do you make all members join in this %community%?');
?>
</p>
<?php
$form = new BaseForm();
echo $form->renderFormTag(url_for('community/addAllMember?id=' . $community->getId()));
include_partial('community/communityInfo', array('community' => $community, 'moreInfo' => array('<input type="submit" value="' . __('Yes') . '" />')));
echo $form->renderHiddenFields();
?>
</form>
示例4: renderFormTag
/**
* Directly, use the BaseForm method here.
* @see lib/vendor/symfony/form/addon/sfForm#renderFormTag($url, $attributes)
*/
public function renderFormTag($url, array $attributes = array())
{
return BaseForm::renderFormTag($url, $attributes);
}
示例5: __
<?php
slot('title');
echo __('Delete consumer secret');
end_slot();
?>
<?php
use_helper('Javascript');
?>
<p>
<?php
echo __('Delete backend consumer secret of this app?');
?>
<?php
echo __('It becomes impossible to access with API when the key is deleted.');
?>
</p>
<?php
$form = new BaseForm();
echo $form->renderFormTag(url_for('@op_opensocial_delete_backend_secret'));
echo $form->renderHiddenFields();
?>
<input type="submit" value="<?php
echo __('Delete');
?>
">
</form>
<?php
echo link_to_function(__('Back to previous page'), 'history.back()');
示例6: __
<?php
slot('title');
echo __('Generate or reset consumer secret');
end_slot();
?>
<?php
use_helper('Javascript');
?>
<p><?php
echo __('Generate or reset consumer secret of this app?');
?>
</p>
<p><?php
echo $application->getTitle();
?>
</p>
<?php
$form = new BaseForm();
echo $form->renderFormTag(url_for('@op_opensocial_update_consumer_secret?id=' . $sf_request->getParameter('id')));
echo $form->renderHiddenFields();
?>
<input type="submit" value="<?php
echo __('Yes');
?>
">
</form>
<?php
echo link_to_function(__('Back to previous page'), 'history.back()');
示例7: array
$appInfoList[__('Screen Shot')] = content_tag('div', image_tag($application->getScreenshot(), array('alt' => $application->getTitle())), array('class' => 'applicationScreenShot'));
}
$appInfoList[__('Description')] = $application->getDescription();
$authorInfoList = array(__('Name') => $application->getAuthorEmail() ? mail_to($application->getAuthorEmail(), $application->getAuthor(), array('encode' => true)) : $application->getAuthor(), __('Affiliation') => $application->getAuthorAffiliation(), __('Aboutme') => $application->getAuthorAboutme(), __('Photo') => $application->getAuthorPhoto() ? image_tag($application->getAuthorPhoto(), array('alt' => $application->getAuthor())) : '', __('Link') => $application->getAuthorLink() ? link_to(null, $application->getAuthorLink(), array('target' => '_blank')) : '', __('Quote') => $application->getAuthorQuote());
op_include_parts('listBox', 'ApplicationInfoList', array('title' => __('About App'), 'list' => $appInfoList));
op_include_parts('listBox', 'AuthorInfoList', array('title' => __('About Author'), 'list' => $authorInfoList));
?>
<?php
if ($member->getId() === $application->getMemberId()) {
$form = new BaseForm();
?>
<?php
slot('update_button');
echo $form->renderFormTag(url_for('@application_update?id=' . $application->getId()));
echo $form->renderHiddenFields();
?>
<input type="submit" value="<?php
echo __('Update');
?>
" />
</form>
<?php
end_slot();
?>
<?php
slot('consumer_secret');
?>
<div id="oauth_consumer_secret"></div>