Is it possible currently (2.10.3) to generate a new REQUEST_TOKEN via php?
I have a problem thats a bit hard to explain, but in essence I have an 'Export CSV' button which calls a function that constructs a csv file and sends it to screen for download. After the button is pressed the download works fine - but I get the dreaded Token Error :twisted: :evil: :twisted: if any other buttons, filters etc are used on the same screen.
To add to the complication, the entire screen (buttons,filters,record listing) exists because it is generated on a key (its not a Contao Table with its own DCA. I have another (normal) screen with a button to create a CSV, and that one works fine.
So I'm wondering if/how I might regenerate the token by code in the called function after the button press.
I realise the token system will be changed in Contao 2.11, but I'd really like to solve this now if possible - and I don't know how the token system works at all.
Cheers, Murray
Bookmarks