Hello, I am using the encryption package composerrequireucsdmathencryption in thinkphp3.2.3 and introduced require & #039; in the entrance file ;. vendorautoload. php & #039; In ApplicationHomeControllerIndexController. class. u... is also added to php...
Hello, in thinkphp3.2.3, I used the composer require ucsdmath/encryption package and introduced require './vendor/autoload. php' in the entry file ';
Use UCSDMathEncryptionEncryption is also added to ApplicationHomeControllerIndexController. class. php;
However, in the instantiation, $ encryption = new Encryption ('hello ');
This is my directory structure:
Reply content:
Hello, in thinkphp3.2.3, I used the composer require ucsdmath/encryption package and introduced require './vendor/autoload. php' in the entry file ';
Use UCSDMathEncryptionEncryption is also added to ApplicationHomeControllerIndexController. class. php;
However, in the instantiation, $ encryption = new Encryption ('hello ');
This is my directory structure:
Ask the same question ..
Https://segmentfault.com/q/1010000005272111
Try to import it before placing it in the entry file
It should be caused by the location of the imported file.
Modified according to the package you needcomposer.jsonAs follows:
Thencomposer updateThen, the modified entry file
Modify the IndexController. class. php file
The result is as follows:
From this error, it is obvious that the class you need has already been introduced, but unfortunately, I will not use this class, so an error is reported!
Hope this will help you.