V
V
Vyacheslav_Shilov2020-06-26 06:11:15
Yii
Vyacheslav_Shilov, 2020-06-26 06:11:15

Is it possible in Yii1.1 to automatically generate relations for models in gii? If yes, how to do it?

I did not find in the Yii1.1 documentation how to automatically generate links for models in the gii generator. But in some materials code fragments with relations are presented as automatically generated in gii. The gii interface is also not particularly conducive to building links between models. How to build connections there, if possible?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Bay, 2020-06-26
@Vyacheslav_Shilov

tables in the database must have fk links. And the GII will pick it up.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question