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.