P
P
Pavel Zamoroka2015-10-13 11:25:58
Yii
Pavel Zamoroka, 2015-10-13 11:25:58

How to work with filtered data in CRUD?

there is CRUD with filtering.
Is it possible to somehow add filtered data to a separate array in order to work with them later?
for example, send e-mail only to subscribers with the status `active`

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Zamoroka, 2015-10-13
@zapashok

The question is closed. In the CRUD viewer, you need to write:

$all_models = $dataProvider->getModels();
foreach ($all_models as $key => $val ) {
    print_r($val);
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question