Problem in the first application with Yii Framework

I'm following the tutorial for a first application in Yii… I'm experiencing the following behavior…

When you try to add a new user the framework automatically generate a validation rule for the field ID of the table of users…



Please fix the following input errors:





    * Id cannot be blank.


    * Username cannot be blank.


    * Password cannot be blank.


    * Email cannot be blank.


My DB Config is…



'db'=>array(


	'username' => 'root',


	'password' => '',


	'connectionString'=>'mysql:host=localhost;dbname=yii;',


)


and the SQL is

CREATE TABLE user ( id INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT, username VARCHAR(128) NOT NULL, password VARCHAR(128) NOT NULL, email VARCHAR(128) NOT NULL );

Any help will be welcome. Thanks.

What are your validation rules() ?  You can probably simply remove the ID rule.

I remember this Problem.

There is a Rule for Field "ID", but there is no Input-Area for the ID.

Just remove the rule, as mentioned before.

Regards,

Christian

Works!!!

Thanks!!!