I think there is a bug in Gii Model of Yii2 when using a non public database schema.
The preview button do nothing when is pressed. Even no errors is shown.
I am using PostgreSQL 9.6 and 9.4.
If the schema is public, it works great and generates the model file.
Also the autocomplete features of Table Name field doesn’t search for tables in non public schemas.
7548