联系官方销售客服
1835022288
028-61286886
请问如何在自己开发的插件里引入第三方类库?看官方手册应该是在App/MyAPP/Config/Auto,php里配置,但试了半天还是没搞好,请各位大佬不吝赐教啊。
https://www.xunruicms.com/doc/767.html
<?php // 自动加载识别文件 return [ /** * ------------------------------------------------------------------- * Namespaces * ------------------------------------------------------------------- * This maps the locations of any namespaces in your application * to their location on the file system. These are used by the * Autoloader to locate files the first time they have been instantiated. * * The '/application' and '/system' directories are already mapped for * you. You may change the name of the 'App' namespace if you wish, * but this should be done prior to creating any namespaced classes, * else you will need to modify all of those classes for this to work. * * DO NOT change the name of the CodeIgniter namespace or your application * WILL break. * * Prototype: * 'Phpcmf\Home' => CMSPATH.'Control/Home', 'Phpcmf\Admin' => CMSPATH.'Control/Admin', 'Phpcmf\Member' => CMSPATH.'Control/Member', */ 'psr4' => [ ], /** * ------------------------------------------------------------------- * Class Map * ------------------------------------------------------------------- * The class map provides a map of class names and their exact * location on the drive. Classes loaded in this manner will have * slightly faster performance because they will not have to be * searched for within one or more directories as they would if they * were being autoloaded through a namespace. * * Prototype: * * 'MyClass' => '/path/to/class/file.php' */ 'classmap' => [ ], ];