[eluser]Brad K Morse[/eluser]
I am new to CI, I have a function for exporting/writing a csv, then another to send an email w/ that csv file.
Is it possible to create a controller function that brings those two together?
Code:
function export($id) {
// export into csv
}
function email($id) {
// send csv
}
function sendExport($id) {
export($id);
email($id);
}
I know this can't be done, but any direction as how it should be done is appreciated.