【问题标题】:How to write form markup in Laravel4如何在 Laravel4 中编写表单标记
【发布时间】:2013-12-05 21:33:48
【问题描述】:

你能帮我在blade sintax中写这个表单标签吗:

  <form name="room"  id="1"  method="post"  class="narrow_width">

谢谢!

【问题讨论】:

    标签: html forms laravel laravel-4


    【解决方案1】:

    有关Form 语法和方法,请参阅http://laravel.com/docs/html

    您可以将这些包装在 Blade 标签中。

    {{ Form::open() }}
    {{ Form::text('username') }}
    

    等等……在你的情况下

    {{ Form::open(array('name' => 'room', 'method' => 'post', 'class' => 'narrow_width', id => '1')) }}
    

    【讨论】:

    • 谢谢。关于 id 有一个小问题: {{ Form::open(array('name' => 'room', 'method' => 'post', 'class' =>'narrow_width', 'id'= >'1')) }}
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-11-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-09-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多