Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter 4.0 Release framework - Kint Error
#2

(This post was last modified: 02-24-2020, 06:27 AM by John_Betong.)

It didn't work when I tried it either so modified:
File: index.php
Code:
<?php DECLARE(STRICT_TYPES=1);
  error_reporting(-1); // regardless

  define('CI_DEBUG', FALSE); // bypass (bool) app/Config/oot/development.php

File: /system/CodeIgniter.php
Code:
        /**
         * Config\Kint
        */
    if( defined('CI_DEBUG') && CI_DEBUG):
        $config = config('Config\Kint');

        \Kint::$max_depth           = $config->maxDepth;
        \Kint::$display_called_from = $config->displayCalledFrom;
        \Kint::$expanded            = $config->expanded;

        if (! empty($config->plugins) && is_array($config->plugins))
        {
            \Kint::$plugins = $config->plugins;
        }

        \Kint\Renderer\RichRenderer::$theme  = $config->richTheme;
        \Kint\Renderer\RichRenderer::$folder = $config->richFolder;
        \Kint\Renderer\RichRenderer::$sort   = $config->richSort;
        if (! empty($config->richObjectPlugins) && is_array($config->richObjectPlugins))
        {
            \Kint\Renderer\RichRenderer::$object_plugins = $config->richObjectPlugins;
        }
        if (! empty($config->richTabPlugins) && is_array($config->richTabPlugins))
        {
            \Kint\Renderer\RichRenderer::$tab_plugins = $config->richTabPlugins;
        }

        \Kint\Renderer\CliRenderer::$cli_colors         = $config->cliColors;
        \Kint\Renderer\CliRenderer::$force_utf8         = $config->cliForceUTF8;
        \Kint\Renderer\CliRenderer::$detect_width       = $config->cliDetectWidth;
        \Kint\Renderer\CliRenderer::$min_terminal_width = $config->cliMinWidth;
    endif; // ($useKint):
    }

Updated the Online Strict Version with the new app/Views/welcome_message.php:

https://ci4-strict.tk/welcome-new

and testing from from London, UK based web host:

https://tools.pingdom.com/#5c1dd69bcc800000

Performance grade: 100%
Page size: 15.0 KB
Load time: 127 ms
Requests: 2
Reply


Messages In This Thread
RE: CodeIgniter 4.0 Release framework - Kint Error - by John_Betong - 02-24-2020, 06:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB