Closed primapwd closed 6 years ago
Well, I found that in_array('debug', $config['modules'])
always return false
because case-sensitive key.
https://github.com/ingeniasoftware/luthier-ci/blob/83eb6a690129f675de014e5dcb559741343bdef8/src/Hook.php#L167
And when I change hooks.php like this
$hook = Luthier\Hook::getHooks(
[
'modules' => ['debug']
]
);
it throws another error.
Fatal error: Default value for parameters with a class type hint can only be NULL in E:\xampp\htdocs\app\vendor\symfony\var-dumper\Dumper\CliDumper.php on line 61
Fatal error: Class 'CI_Exceptions' not found in E:\xampp\htdocs\app\system\core\Common.php on line 196
Sorry about that, as you may noticed there is a misspelling in the online documentation, it's debug
not Debug
:
$hook = Luthier\Hook::getHooks(
[
'modules' => ['debug']
]
);
About the other error, please make sure that your composer PHP version matches your server PHP version. It seems that you are using PHP 7 dependencies on a server running PHP 5. Just for being sure, type in your console php -v
and then compare the version number with the output of phpinfo()
in any script of your server.
Oopss, you're right. I have different PHP version installed. Will close this issue then. Thanks a lot.
Hi, I try Debug Bar, follow the docs and it didn't displayed at all. I found that Debugbar::init() doesn't called automatically. When I call Debugbar::init() manually, Luthier-CI throws an error
Luthier\Exception\RouteNotFoundException
.And the error disappear after I commented Debugbar::init() line. This is my hooks.php file:
Any thoughts?
In case you need this information: PHP 5.6 CodeIgniter 3.1.8 Luthier-CI 1.0.1