當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。