M
M
Maxim Timofeev2017-01-17 13:51:10
Yii
Maxim Timofeev, 2017-01-17 13:51:10

Generating multiple models via GII?

Somebody wrote the generator for set of models. To throw an array, settings and get models. Not one by one, as implemented in gii out of the box, but a bunch at once.
I now have 50 tables, I need to create models for them. I caught myself thinking that it was faster to write than to click, and then I caught myself thinking that maybe someone had already written.
If you have, please share.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rou1997, 2017-01-17
@webinar

Circumstances are unlikely to flow in such a way, so you need to ask ten forums at once, including the official one, but you can give a hint, you can work with Gii through the command line - through yii2.bat, etc., which will allow you to write a similar script, you can use it from PHP call through exec(),but it is not available everywhere, this is not a solution for shared hosting.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question