當前位置: 首頁>>代碼示例>>PHP>>正文


PHP FormBuilder::plain方法代碼示例

本文整理匯總了PHP中Kris\LaravelFormBuilder\FormBuilder::plain方法的典型用法代碼示例。如果您正苦於以下問題:PHP FormBuilder::plain方法的具體用法?PHP FormBuilder::plain怎麽用?PHP FormBuilder::plain使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Kris\LaravelFormBuilder\FormBuilder的用法示例。


在下文中一共展示了FormBuilder::plain方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: setUp

 public function setUp()
 {
     parent::setUp();
     $this->view = $this->app['view'];
     $this->request = $this->app['request'];
     $this->request->setSession($this->app['session.store']);
     $this->validatorFactory = $this->app['validator'];
     $this->model = Mockery::mock('Illuminate\\Database\\Eloquent\\Model');
     $this->config = (include __DIR__ . '/../src/config/config.php');
     $this->formHelper = new FormHelper($this->view, $this->request, $this->config);
     $this->formBuilder = new FormBuilder($this->app, $this->formHelper);
     $this->plainForm = $this->formBuilder->plain();
 }
開發者ID:kyxer,項目名稱:barriosLaravel,代碼行數:13,代碼來源:FormBuilderTestCase.php

示例2: setUp

 public function setUp()
 {
     parent::setUp();
     $this->view = $this->app['view'];
     $this->request = $this->app['request'];
     $this->request->setSession($this->app['session.store']);
     $this->validatorFactory = $this->app['validator'];
     $this->model = new TestModel();
     $this->config = (include __DIR__ . '/../src/config/config.php');
     $this->formHelper = new FormHelper($this->view, $this->config);
     $this->formBuilder = new FormBuilder($this->app, $this->formHelper);
     $this->plainForm = $this->formBuilder->plain();
 }
開發者ID:CaporalDead,項目名稱:laravel-form-builder,代碼行數:13,代碼來源:FormBuilderTestCase.php

示例3: getSearchForm

 /**
  * Gets existing instance or create a new search input form.
  *
  * @param string $action Form action URL
  * @return Form
  */
 public static function getSearchForm($action = '')
 {
     $class = get_called_class();
     if (empty(self::$searchForms[$class])) {
         self::$searchForms[$class] = self::$formBuilder->plain(['class' => 'form-inline', 'method' => 'get', 'url' => $action])->add('query', 'text', ['label' => false, 'attr' => ['placeholder' => self::$translator->trans('lavanda::common.search_placeholder')]])->add('search', 'submit', ['label' => self::$translator->trans('lavanda::common.search_button')]);
     }
     return self::$searchForms[$class];
 }
開發者ID:idealogica,項目名稱:lavanda,代碼行數:14,代碼來源:Model.php

示例4: plain

 /**
  * Get instance of the empty form which can be modified
  *
  * @param array $options
  * @param array $data
  * @return \Form 
  * @static 
  */
 public static function plain($options = array(), $data = array())
 {
     return \Kris\LaravelFormBuilder\FormBuilder::plain($options, $data);
 }
開發者ID:Dimimo,項目名稱:Booklet,代碼行數:12,代碼來源:_ide_helper.php


注:本文中的Kris\LaravelFormBuilder\FormBuilder::plain方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。