V
V
Viktor Yanyshev2017-03-03 08:13:15
Yii
Viktor Yanyshev, 2017-03-03 08:13:15

Why is the model not created?

Yii2 was installed via composer:

composer global require "fxp/composer-asset-plugin:^1.2.0"
composer create-project --prefer-dist yiisoft/yii2-app-basic basic

After that, I went to the address host.dev/?r=gii, I went to the Model Generator, indicated the table from the database, the name of the model class was pulled up. I clicked preview, looked at what gii had generated, and then set the flag to overwrite the already existing model class and generation. After that, I threw out an error
b805cf58a88040929ed8448bdd1edde1.png
Full screen of the error: https://goo.gl/5zZWL0
Returned to the start page, re-specified the table name, left all other parameters by default (as before), but now when I click preview, it immediately throws an error , no preview.
Config: Ubuntu, Apache, 7.0.13-0ubuntu0.16.04.1

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question