0
<?
$form_options = array(
array(/* Name */
'id' => 'name',
'placeholder' => 'Please Enter Name',
'name' => 'name',
'type' =>'text',
'label' => 'Name:'
),
array(/* Email */
'id' => 'email',
'placeholder' => 'Please Enter Email',
'name' => 'email',
'type' =>'email',
'label' => 'Email Id:'
),
array(/* Password */
'id' => 'password',
'placeholder' => 'Please Enter Password',
'name' => 'password',
'type' =>'password',
'label' => 'Password:'
),
array(/* contact */
'id' => 'contact',
'placeholder' => 'Please Enter Contact',
'name' => 'contact',
'type' =>'text',
'label' => 'Contact:'
),
array(/* Gender */
'id' => 'gender',
'label' => 'Gender',
'type' => 'radio',
'options' => array(
array(
'id' => 'gender',
'value' => 'male',
'label' => 'Male'
),
array(
'id' => 'gender',
'value' => 'female',
'label' => 'Female'
)
)
),
array(/* Address */
'id' => 'address',
'type' => 'textarea',
'placeholder' => 'Address'
),
array(/* SUBMIT */
'id' => 'submit',
'type' => 'submit'
)
);
echo $this->form_builder->build_form_horizontal($form_options);
?>
すべてのエラーは、あなたがそれのためのライブラリをロードしていますか? –
あなたのオープニングタグにPHPがありません(<?) – MasoodUrRehman
あなたが使っているプラグインを知っているといいでしょう。しかし、私はあなたのエコーステートメントがビューになると思います、あなたのコントローラの配列 – Brad