How to use flash messages in reusable forms?
Notice: This thread is very old.
- netteman
- Member | 129
Hi
I created a reusable form https://doc.nette.org/en/forms#… and I have the form definition and processing in the same place (nice!)
I'd also like to use flash messages in the processing part – is it possible or not?
Thx :)
- GEpic
- Member | 566
netteman wrote:
Hi
I created a reusable form https://doc.nette.org/en/forms#… and I have the form definition and processing in the same place (nice!)
I'd also like to use flash messages in the processing part – is it possible or not?
Thx :)
Hello, flashMessages are part of Presenter, so if your forms (components) are
attached to some, you can use this inside the
component – $this->getPresenter()->flashMessage();
Last edited by GEpic (2016-08-25 21:04)