Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Config::set turn on profiling from controller
  • 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?
  • HarroHarro
    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();


  • 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.
  • 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.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion