我的控制器是这样的
$content = View::factory('user/biochemistryTestForm')
->bind('result', $result);
$this->template->content = $content;
//here $result is array of Datatbase records
在视野中
<?php echo Form::select('allvalues', $result,null, null) ?>
this tag generate code to browser like this
<select name="allvalues">
<option value="0">Photo</option>
<option value="1">Kishore</option>
<option value="2">Chandrapal</option>
<option value="3">Framework</option>
</select>
我想以编程方式为此标签设置值
帮我