panique / mini3

Just an extremely simple naked PHP application, useful for small projects and quick prototypes.
274 stars 100 forks source link

[TODO] Helper lib doesn't work as folder/file needs to be uppercase name #23

Closed U2t5 closed 7 years ago

U2t5 commented 7 years ago

I changed the name of the folder libs to Libs to make it load. I have the correct namespace is my helper.php : namespace Mini\Libs and I call it like this : \Mini\Libs\Helper::debugPDO() (I know I need the params but that's not the problem). Error : Fatal error: Uncaught Error: Class 'Mini\Libs\Helper' not found in

U2t5 commented 7 years ago

Solution : After reading the PSR-4 standards we also need to make the first letter of the PHP file an uppercase.

panique commented 7 years ago

@SkyNeT-ProD Thanks for the report, can you please say which operating system your installation is running on ? And in case you are a Vagrant box, what's the host operating system ?

U2t5 commented 7 years ago

@panique Ubuntu 17, using lampp, I don't use Vagrant.

panique commented 7 years ago

it is fixed now :)