【发布时间】:2014-01-26 02:18:38
【问题描述】:
我正在尝试显示所有国家/地区的下拉列表。在编辑页面中,我想选择一个国家。将India 称为selected=selected。
<div class="large-3 columns">
{{ Form::label('country') }}
</div>
<div class="large-4 columns">
@include("common.country")
</div>
我该怎么做。是否可以在@include("common.country") 中传递数组中的值?
【问题讨论】:
-
您能发布包含视图的内容吗?
-
@DamienPirsy:
@section("country") @if (count($countries) > 0) {{ Form::select('country', $countries, null, array('id' => 'country')); }} @endif @show
标签: php laravel-4 template-engine blade