I have tried implementing the code for a new login from the example at this link...
http://www.larryullm...-yii-framework/
When I (try) to login, this Error appears... cException - LoginForm.rememberMe" is not defined.
/opt/yii/framework/web/helpers/CHtml.php(2063)
1. The stack trace highlited the remember me code even though it was commented out. So I am assuming that <!-- out code --> is not good enough and the code should be removed. Confirm?
2. Larry's code has CHtml with the label and textfield. Is that to make these labels for this paticular form unique for this instance only?
3. Also, the descriptions I found for 'activeLabel' and 'activeLabelEx' are exactly the same (Generates a label tag for a model attribute.) so how does one determine which to use?
Larry's code:
<div> <?php echo CHtml::activeLabel($form,'email'); ?> <?php echo CHtml::activeTextField($form,'email') ?> </div>
My code:
<div class="row"> <?php echo $form->labelEx($model,'email'); ?> <?php echo $form->textField($model,'email'); ?> <?php echo $form->error($model,'email'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'password'); ?> <?php echo $form->passwordField($model,'password'); ?> <?php echo $form->error($model,'password'); ?> <!-- <p class="hint"> Hint: You may login with <tt>demo/demo</tt>. </p> --> </div> <!-- <div class="row rememberMe"> <?php echo $form->checkBox($model,'rememberMe'); ?> <?php echo $form->label($model,'rememberMe'); ?> <?php echo $form->error($model,'rememberMe'); ?> </div> --> -->
I am just beginning with Yii because I do not know PHP!










