Call to a member function isAttributeRequired() on a non-object

Hello.

I just generated a Model from this SQL-Table:



CREATE TABLE IF NOT EXISTS `Supporters` (


  `id` int(11) NOT NULL auto_increment,


  `title` varchar(128) NOT NULL,


  `subtitle` varchar(255) default NULL COMMENT 'Unterüberschrift',


  `content` text NOT NULL,


  `contentDisplay` text,


  `createTime` date default NULL,


  PRIMARY KEY  (`id`)


)


After that, i generated a Controller and CRUD-Views without problems.

Now, when i visit the CREATE-Page (index.php?r=Supporters/create) i get the following Error Message:

 Fatal error: Call to a member function isAttributeRequired() on a non-object in /var/www/yii-1.0.5/framework/web/helpers/CHtml.php on line 1019 

What does this mean?

Did you make any change to the generated code? What is the code in actionCreate() and the corresponding view code?

Ok, i fixed this. It was just a typo i made myself in the view/create.php. Works fine now, Yii Rocks :)