A
A
Artur Khismatullin2017-04-13 18:16:57
Yii
Artur Khismatullin, 2017-04-13 18:16:57

How to clear the form from entries?

There is a page with comments and on the same page there is a form for adding comments. After I add a comment, the old information remains on the form. I tried to do it through return $this->refresh(), but nothing was erased.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2017-04-13
@Nachalnik

Good evening.
You can try using redirect instead of refresh or clean it up with jquery.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question