Yii-User Registration Form Posts Field As Empty

i’m using Yii-user, and have made some modification to the user/views/user/registration.php file.

for some reason even when i fill in firstname and lastname, it still says i left those fields empty. any idea why?

this is the original code


profileFields=Profile::getFields();

        if ($profileFields) {

            foreach($profileFields as $field) {

            ?>

    <!--div class="row"-->

        <?php echo $form->labelEx($profile,$field->varname); ?>

        <?php 

        if ($widgetEdit = $field->widgetEdit($profile)) {

            echo $widgetEdit;

        } elseif ($field->range) {

            echo $form->dropDownList($profile,$field->varname,Profile::range($field->range));

        } elseif ($field->field_type=="TEXT") {

            echo$form->textArea($profile,$field->varname,array('rows'=>6, 'cols'=>50));

        } else {

            echo $field->varname.'<br />';

            echo $form->textField($profile,$field->varname,array('size'=>60,'maxlength'=>(($field->field_size)?$field->field_size:255)));

        }

         ?>

        <?php echo $form->error($profile,$field->varname); ?>

    <!--/div--> 

            <?php

            }

        }

i’ve changed it too…


$form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array(

    'id'=>'registration-form',

    'type'=>'vertical',

    'enableClientValidation'=>true,

    'clientOptions'=>array(

        'validateOnSubmit'=>true,

    ),

));




<?php echo $form->textField($model,'email', array('class' => 'input-block-level', 'placeholder' => $model->getAttributeLabel('email'))); ?>


        <?php echo $form->passwordField($model,'password', array('class' => 'input-block-level', 'placeholder' => $model->getAttributeLabel('password'))); ?>


        <?php echo $form->passwordField($model,'verifyPassword', array('class' => 'input-block-level', 'placeholder' => $model->getAttributeLabel('verifyPassword'))); ?>   


        <p class="text-seperator"> about you </p>


        <?php echo $form->textField($profile,'firstname', array('class' => 'input-block-level', 'placeholder' => $model->getAttributeLabel('firstname'), 'maxlength'=> 255)); ?> 


        <?php echo $form->textField($profile,'lastname', array('class' => 'input-block-level', 'placeholder' => $model->getAttributeLabel('lastname'), 'maxlength'=> 255)); ?>