Introduce PHP base class
Configuration file
app
--vendor
--composer
--autoload_classmap.php
Configure the relative path in the configuration file
<?php $vendorDir = dirname(dirname(__FILE__)); $baseDir = dirname($vendorDir); return array( 'PHPExcel' =>$vendorDir .'/PHPExcel/PHPExcel.php' );
use PHPExcel;
The above introduces the CakePHP 32 plug-in introduction chapter, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.