請問如何在自己開發(fā)的插件里引入第三方類庫?看官方手冊應(yīng)該是在App/MyAPP/Config/Auto,php里配置,但試了半天還是沒搞好,請各位大佬不吝賜教啊。
http://apdwn.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' => [
],
];
你要做什么?
回復(fù)@司馬老賊 做短信接口開發(fā),雖然商城里有了,但是還是想自己學(xué)習(xí)開發(fā)一下
短信接口用不著這種功能啊
文檔已更新,這個文檔不適合做短信接口,這個文檔時候做大型插件APP開發(fā)
自定義短信接口看專門有篇文章
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
學(xué)無止境