Codeigniter profiler to send output to file instead of display on page? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Codeigniter profiler to send output to file instead of display on page? (/showthread.php?tid=502) |
Codeigniter profiler to send output to file instead of display on page? - gloton - 12-10-2014 Sorry, I do not speak English, but I have a question. I need to save the output of $this->output->enable_profiler(TRUE) into the some file. Any ideas appreciated. RE: Codeigniter profiler to send output to file instead of display on page? - _this - 12-11-2014 Hi gloton, This trick worked on CI 2.2 (I tried it 5 minutes ago) : PHP Code: // Create a new PHP file in your app/libraries folder called "MY_Profiler.php" Before using the write_file function, you should enable the File Helper by editing the autoload.php located in your app/config path : PHP Code: $autoload['helper'] = array('file'); RE: Codeigniter profiler to send output to file instead of display on page? - gloton - 12-11-2014 I'm extremely grateful.Your solution works perfectly. Thank you for your time and effort in this matter. RE: Codeigniter profiler to send output to file instead of display on page? - _this - 12-12-2014 Glad to hear it ! You should probably edit the topic title to add a [Solved] tag so others can benefit of this solution if they need to |