I am wondering how best to do this. I played with a few things including the user_ajax call but before I get too far in I thought I would ask the community.
I have a list and one element is a db join to another table. When this element is displayed in the list view I display it as an icon. What I want to happen is when a user clicks this icon a php script to run. In this php script I will pull data from a number of tables and create a pdf file which I then wish to output to the user.
I would like to be able to access J! functions and fabrik models inside this script if possible.
I can get a link on the icon using the list view settings of the element but I have run into framework access issues if I simply run a custom php file, and when I tried a user_ajax call but am not sure this is really the best way to handle it.
Open to ideas, thanks.
I have a list and one element is a db join to another table. When this element is displayed in the list view I display it as an icon. What I want to happen is when a user clicks this icon a php script to run. In this php script I will pull data from a number of tables and create a pdf file which I then wish to output to the user.
I would like to be able to access J! functions and fabrik models inside this script if possible.
I can get a link on the icon using the list view settings of the element but I have run into framework access issues if I simply run a custom php file, and when I tried a user_ajax call but am not sure this is really the best way to handle it.
Open to ideas, thanks.