当前位置: 首页>>代码示例>>PHP>>正文


PHP BaseForm::renderFormTag方法代码示例

本文整理汇总了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;
 }
开发者ID:phenom,项目名称:OpenPNE3,代码行数:11,代码来源:opAuthRegisterForm.class.php

示例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);
 }
开发者ID:xfifix,项目名称:symfony-1.4,代码行数:22,代码来源:sfFormObject.class.php

示例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>
开发者ID:te-koyama,项目名称:openpne,代码行数:23,代码来源:addAllMemberInput.php

示例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);
 }
开发者ID:schmittjoh,项目名称:jmsFormsPlugin,代码行数:8,代码来源:jmsFakeObjectForm.class.php

示例5: __

<?php 
slot('title');
echo __('Delete consumer secret');
end_slot();
?>

<?php 
use_helper('Javascript');
?>
<p>
<?php 
echo __('Delete backend consumer secret of this app?');
?>
&nbsp;
<?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()');
开发者ID:rysk92,项目名称:opOpenSocialPlugin,代码行数:31,代码来源:deleteBackendConsumerSecretInput.php

示例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()');
开发者ID:niryuu,项目名称:opOpenSocialPlugin,代码行数:30,代码来源:updateConsumerSecretInput.php

示例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>
开发者ID:niryuu,项目名称:opOpenSocialPlugin,代码行数:31,代码来源:infoSuccess.php


注:本文中的BaseForm::renderFormTag方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。