ci3 profilling in constructor fails - 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: ci3 profilling in constructor fails (/showthread.php?tid=76663) |
ci3 profilling in constructor fails - mike433 - 06-07-2020 Hi I am trying to profile my application, but instead of putting the profiling code in each and every function I tried to put it in the class constructor as follows PHP Code: function __construct(){ but it threw the following error Code: A PHP Error was encountered I was under the impression that the constructor will be called before every function call so what happened here. RE: ci3 profilling in constructor fails - php_rocs - 06-07-2020 @mike433, Why are you adamant about profiling your application? There is useful information available at other locations (on the internet) that could possible give you the necessary information that you are seeking. Also, have you read the documentation ( https://codeigniter.com/userguide3/general/profiling.html?highlight=benchmark )? |