N
N
Nikita Ronzin2017-02-27 23:37:54
Yii
Nikita Ronzin, 2017-02-27 23:37:54

How to display data from a linked table in a view?

And so the question. I have two related tables in yii have models with them. I need to display data from these tables in views. What are the withdrawal options

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2017-02-28
@Eridani

Although I am not familiar with yii, it would be logical to create one method in the model, which, through join, will give you what you need.
If necessary in a view, build the same join in it. And in general, why call it in a view?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question