Excel Exporting Problem in Codeignitor - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Excel Exporting Problem in Codeignitor (/showthread.php?tid=34024) |
Excel Exporting Problem in Codeignitor - El Forum - 09-16-2010 [eluser]aruntvla[/eluser] I need to export a search result to excel sheet,when i export it ,it showing error as 'A PHP Error was encountered Severity: Warning Message: Invalid argument supplied for foreach() Filename: plugins/to_excel_pi.php Line Number: 13 A PHP Error was encountered Severity: Warning Message: Invalid argument supplied for foreach() Filename: plugins/to_excel_pi.php Line Number: 17 ' my view page. from here passing the array to controller Code: <?php controller page function is Code: function generateexcel($array) and the plugin contains function to_exceltoarray(),function code is Code: function to_exceltoarray($array, $filename='out') { how i pass this array to plugin function.plz give me suggestion. |