Closed Xenon69 closed 11 years ago
I actually saw the Cake team fix this bug in the repository last week but it isn't available in a release yet. I'm not sure why it's happening either but my guess is the App::import().
Could you try using a regular PHP include?
Ok, with regular PHP include :
require_once dirname(DIR) . '/Vendor/autoload.php';
it works !
Thanks
On a fresh install of cake 2.3.1, using xampp 3.1.0, after : --- installing composer, --- creating "composer.json" : { "config": { "vendor-dir": "Vendor" }, "require": { "mjohnson/uploader": "4.*" } } in app directory,
--- running "php composer install" => see result below : Loading composer repositories with package information Installing dependencies
symfony/event-dispatcher suggests installing symfony/dependency-injection (2.2. ) symfony/event-dispatcher suggests installing symfony/http-kernel (2.2.) aws/aws-sdk-php suggests installing doctrine/cache (Adds support for caching of credentials and responses) aws/aws-sdk-php suggests installing ext-apc (Allows service description opcode c aching, request and response caching, and credentials caching) aws/aws-sdk-php suggests installing monolog/monolog (Adds support for logging HT TP requests and responses) aws/aws-sdk-php suggests installing symfony/yaml (Eases the ability to write man ifests for creating jobs in AWS Import/Export) Writing lock file Generating autoload files
--- adding "App::import('Vendor', array('file' => 'autoload'));" in core.php
=> I get the following error when accessing site root (here : localhost/cake")
Fatal error: Class 'Inflector' not found in D:\xampp\htdocs\cake\lib\Cake\Core\App.php on line 748
Any idea ?
Thanks in advance,
Fred