Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
Config::set turn on profiling from controller
sagikazarmark
December 2012
Hi,
I am trying to turn on profiling for specific user roles from my controllers before method, but it does not work. Is there any way to turn on profiling from my code?
Harro
December 2012
Accepted Answer
The profiler is activated in the framework initialisation. After that, the setting isn't used anymore.
If you want to enable the profiler manually, you have to init the profiler too using: \Profiler::init();
sagikazarmark
December 2012
Thanks Harro
sagikazarmark
December 2012
Hi,
Maybe I was not clear: I would like to enable and show the Profiler like I enabled in the config. Now I understand it is not possible.
My new question is: Can I disable the Profiler in my code. I mean after enabling it from config.
Harro
December 2012
Huh? I explained in my previous post how to enable the profiler after the facts.
The profiler has no option to disable it once it's running.
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
Harro
December 2012
sagikazarmark
December 2012