Fatal Error : Call To A Member Function Isattributerequired()


I just started learning Yii . While creating a simple register user module in view this error showing after generating the crud. Did i missed any library or something. Anyone have any idea regarding this error.

Fatal error: Call to a member function isAttributeRequired() on a non-object in C:\wamp\www\yii\framework\web\helpers\CHtml.php on line 1197


Visakh Viswanath

check if all models passed to view are not empty. One of them must be null…

but what if i want to pass null value…??

then you must check if it is null in your view and do not refer to its attributes in such case…