I can't create a new TextField

Property "User.AuthenCode" is not defined.

this is message from browser. When I create a new TextField in View layer

<?php echo CHtml::activeTextField($register,‘AuthenCode’,array(‘size’=>30,‘maxlength’=>30)); ?>

I declared it in rules, safeAttribute in Model layer

Error message:



Property "User.AuthenCode" is not defined.

Source File


in your User.php model have to create AuthenCode properties,

class User extends CActiveRecord


   public $AuthenCode;



Thanks you. I repaired it :) It run