Send complex SQL string to another controller/view for print |
Hi guys
I'm generating a very long filtering and complex SQL I have a view with the search/filter form. When form submitted, the results load (using $.ajax from jQuery) in a div below form Now, the results div has some buttons for printing results, exporting to pdf, excel, and so. I've been wondering how to re-use the sql query generated to filter the results in controller with the results div, but every idea I get lead my site to being hacked. Maybe to store -temporarily- the sql string in a session variable? So when I call print (bootstrap modal) I get the flashdata and then clean it ? Any tips or suggestions for doing this without loosing security? Thanks a lot
Enrique
https://beza.com.ar |
Messages In This Thread |
Send complex SQL string to another controller/view for print - by kabeza - 10-07-2015, 01:41 PM
RE: Send complex SQL string to another controller/view for print - by ignitedcms - 10-07-2015, 01:58 PM
RE: Send complex SQL string to another controller/view for print - by kabeza - 10-07-2015, 02:14 PM
RE: Send complex SQL string to another controller/view for print - by mwhitney - 10-08-2015, 06:13 AM
RE: Send complex SQL string to another controller/view for print - by ignitedcms - 10-07-2015, 02:27 PM
|