0

In my cake app a need Imagine but how I can create instance of class Imagine in Controller.

Plugin was install by composer and all files are in vendor folder.

This:

 require 'vendor/autoload.php';
 $imagine = new Imagine\Gd\Imagine(); 

doesn't work.

I get:

require(vendor/autoload.php): failed to open stream: No such file or directory [APP/Controller\ArticlesController.php, line 100] Fatal error: require() [function.require]: Failed opening required 'vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\cakephp_blog\src\Controller\ArticlesController.php on line 100

4

0 回答 0