<?php echo $form->textField($profilesModel, 'last_name', array('size' => 20, 'maxlength' => 20)); ?> <?php echo $form->error($profilesModel, 'last_name'); ?> </div> <div class="row"> <?php echo $form->labelEx($profilesModel, 'gender'); ?> <?php echo $form->dropDownList($profilesModel, 'gender', UserApi::getAllgender(), array('empty' => 'Select a gender')); ?> <?php echo $form->error($profilesModel, 'gender'); ?> </div> <div class="row"> <?php echo $form->labelEx($profilesModel, 'address_line1'); ?> <?php echo $form->textArea($profilesModel, 'address_line1', array('rows' => 6, 'cols' => 50)); ?> <?php