How to check, if current request is render, action or handle
- Ondřej Kubíček
- Member | 494
Do you know how it works? Every request run action, handle (if it is), render in this order. See https://doc.nette.org/…n/presenters#…
- Member | 219
@OndřejKubíček Thanks. I checked it and understand. But, I need a solve following situation:
I want remember the last presenter with action and parameters except those
actions, which was an action or POST.
But if inside the form download link (which is action method in presenter), I want to ignore it and do not remember (because when I click to the link, system will remember the path and next, when I click to the cancel, file will be downloaded again instead of live the form).
…or maybe you now better way, how to remember previous links :-)
Last edited by steelbull (2018-06-12 15:41)
- Member | 73
Hi, check storeRequest() and restoreRequest() methods
storeRequest() will create “backlink” to actual server request. You can choose when the backlink should be created / stored a and you can use backlinks in templates or wherever you need.