Skip to content
Advertisement

Debug Toolbar in Codeigniter 4 not working

I installed Codeigniter 4.0.2 and did following changes:

1- CI_ENVIRONMENT = development in .env file

2- SetEnv CI_ENVIRONMENT development in .htaccess in public folder

3- Added $useKint = true; in main index.php file in public folder

When I open at localhost, welcome page is rendered but no Debug Toolbar is rendered. Am I missing anything?

Advertisement

Answer

This fixed it for me:

  1. Rename env file to .env and open it
  2. Uncomment line # CI_ENVIRONMENT = production and change to the value to development
  3. Change the app.baseURL value to your app’s base URL (this seems like the step you missed)
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement