S
S
Sergey2011-07-10 16:44:04
Yii
Sergey, 2011-07-10 16:44:04

Yii, how to execute an event after all records have been found?

There was a following problem. There is a certain behavior that performs certain actions with the data at the end of the request (tobish when all onAfterFind have completed ). If you put the necessary actions inside onAfterFind, then everything is fine, except for one fact: the number of requests increases, since each such action will execute one request, and quite capacious.
Directly in onAfterFind, data is collected about the upcoming selection. But how to track that we can already perform the desired action? The number of records from events can be found out with only one more request, which is unacceptable.
I will be grateful for any help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Fr3nzy, 2011-07-11
@Fr3nzy

Write to this person: samdark.habrahabr.ru/
Maybe he will help you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question