L
L
lxfr2017-03-21 12:34:46
Yii
lxfr, 2017-03-21 12:34:46

How to add another model to CActiveDataProvider (Yii framework)?

There is a CActiveDataProvider based on a selection (criteria).
How to add another model to it, for example, with ID = 1?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Bukharev, 2017-03-21
@evgenybuckharev

In criteria, add a condition under which the model with ID = 1 will be included in the selection

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question