Welcome Guest, Not a member yet? Register   Sign In
Debug toolbar on production
#3

(12-23-2021, 01:47 AM)Vodecki Wrote: Is there any possibility to enable debug toolbar on production for some user privillege or in specific controller ?
in CI3 it was quite easy to enable it by  for example in this way

if($user[['role]=='admin') $this->output->enable_profiler(true)

is something similar possible in CI4 ?

No. CI4 uses the constant to enable debug toolbar.
As you know constants cannot change on the runtime.
Reply


Messages In This Thread
Debug toolbar on production - by Vodecki - 12-23-2021, 01:47 AM
RE: Debug toolbar on production - by kenjis - 12-24-2021, 03:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB