如何在Laravel4中编写表单标记 [英] How to write form markup in Laravel4

查看:163
本文介绍了如何在Laravel4中编写表单标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 < form name =roomid =你可以帮我写这张表格标签到sintax: 1method =postclass =narrow_width> 

谢谢!

解决方案

有关<$的信息,请参阅 http://laravel.com/docs/html c $ c>表单语法和方法。



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

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

$ b>

其他...

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


Can you help me to write this form tag in blade sintax:

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

Thank you!

解决方案

See http://laravel.com/docs/html for the Form syntax and methods.

You can wrap these in Blade tags.

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

Etc... In your case

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

这篇关于如何在Laravel4中编写表单标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆