php - Call function to new window/tab then redirect to other function -
i making report fpdf. problem want call function using fpdf class in new window after processing save database, this: can figure 1. first have save database, data posted form form html. 2. call fpdf function print result same data first process. 3. redirect index function show data has been saved database.
my code :
//save database $this->my_model->insert($data); //call pdf function $this->print_the_result($data); //redirect redirect('my_class/index');
redirection codeigniter works within window operates with, server not know client (the browser).
the (generally explained) workaround explained @ http://codeigniter.com/forums/viewthread/110435/#557038:
"you need send them page html output uses javascript open new window"
with being said, might need view module redirection.
Comments
Post a Comment