Closed louim closed 11 years ago
You have to import the AttachmentBehavior if you are referencing constants. CakePHP doesn't have an autoloader.
App::uses('AttachmentBehavior', 'Uploader.Model/Behavior');
Or use strings instead of constants.
I thought Composer autoloader was to be used for that? Because loading the behavior manually as you said makes it trip on the next class not loaded. I now get
Fatal error: Class 'Aws\Common\Enum\Region' not found
Trying to save to AWS?
Composer autoloading only applies to packages installed with Composer, not Cake itself.
What is present in the /Vendor/composer/autoload_namespaces.php file? I would debug the ClassLoader as this seems like a Composer/environment problem.
I'm facing the same problem, can you share your composer.json file
Hello!
I have tried to install the uploader plugin, but I always get the following error:
I have followed installation as specified on you website, Installing composer, adding the composer.json file, and getting composer to install the project and its dependencies.
I also added the
to the Config/core.php file as specified in the installation instructions. I still get the same error.