I'm trying to use the single-file Adminer version (this one to be specific) from my codebase. That codebase is needed to perform some checks before accessing Adminer.
Composer autoloading in my application leads to the following issue when trying to use Adminer:
Fatal error: Cannot redeclare h() (previously declared in /usr/local/apache2/htdocs/apps/vb/vendor/cakephp/core/functions.php:41
I tried to rename h()
in the adminer file to something like h_adminer()
, but then the stylesheet seems to become corrupt (maybe charset related?).
Some of my classes need to be loaded, so I can't just get rid of the autoloader, or I'd need to manually load all classes & dependencies I need (not ideal).
Any suggestions to best deal with this issue are most welcome. Thanks!