Using Gii

When generate a Model class and press Preview button, i see instead files: models/Comment.php, models/File.php, models/Page.php, models/PageHasFile.php, models/User.php, simple Code File and Generate(as shown on downloaded image).

Looks like that framework can’t read DB schema from your database. Or your database does not have tables.