Hi,
I’m building my first Yii website. In my CMS I have a user management section. When I use update user details it is greeting the value of the password field with other values in the database. How can I stop this? I want the password field to be empty in the first load and even when reload after an error. (please see the attached screen shot of my form)
I will paste the view code here
<div class="row">
<?php echo $form->labelEx($model,'Reset Password', array('class'=>'form_controller')); ?>
<?php echo $form->checkbox($model,'reset_password',array('size'=>60,'maxlength'=>100)); ?><br />
<?php echo $form->error($model,'reset_password'); ?>
</div>
<div class="row">
<?php echo $form->labelEx($model,'Password', array('class'=>'form_controller')); ?>
<?php echo $form->passwordField($model,'password',array('size'=>60,'maxlength'=>100)); ?><br />
<?php echo $form->error($model,'password'); ?>
</div>
<div class="row">
<?php echo $form->labelEx($model,'Confirm password', array('class'=>'form_controller')); ?>
<?php echo $form->passwordField($model,'confirm_password',array('size'=>60,'maxlength'=>100)); ?><br />
<?php echo $form->error($model,'confirm_password'); ?>
</div>
Thanks