php-crud-admin
php-crud-admin copied to clipboard
Error when $_SERVER['PATH_INFO'] is not set
I get the
error code: 1000 message: Route '' not found
after debuging I found that the error happens when $_SERVER['PATH_INFO'] is not set.
On my shared hoster (1und1) it's that case. I have a $_SERVER['ORIG_PATH_INFO'] instead.
So I can only fix it if I set the config option 'basePath' => '/admin.php'
I have the feeling this is a bug - or at least it should be mentioned in blinking red in the documentation that you should set the basePath
A workaround is to set:
$_SERVER['PATH_INFO'] = $_SERVER['ORIG_PATH_INFO'];
At the top of the file.