Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dispatcher.class.php #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

aa25905
Copy link

@aa25905 aa25905 commented Dec 22, 2013

比如个人对代码的改动很大,如果一些自定义函数全部写在function.php文件中,一升级就全没了,因此这里加入vendors.php,就可以把一些自己写的函数全部放于vendors.php,方便升级,此文件已传

比如个人对代码的改动很大,如果一些自定义函数全部写在function.php文件中,一升级就全没了,因此这里加入vendors.php,就可以把一些自己写的函数全部放于vendors.php,方便升级,此文件已传
@liu21st
Copy link
Owner

liu21st commented Dec 22, 2013

完全没有这个必要 后面已经有了
// 加载模块的扩展配置文件
load_ext_file(MODULE_PATH);

通过load_ext_file方法 可以自定义加载任何你需要加载的公共文件。

@aa25905
Copy link
Author

aa25905 commented Dec 22, 2013

那我新建一个vendors.php文件,用于存放我自己写的一些自定义函数,load_ext_file方法怎么用?

------------------ 原始邮件 ------------------
发件人: "ThinkPHP";[email protected];
发送时间: 2013年12月23日(星期一) 凌晨0:33
收件人: "liu21st/onethink"[email protected];
抄送: "阿哥街"[email protected];
主题: Re: [onethink] Update Dispatcher.class.php (#3)

完全没有这个必要 后面已经有了
// 加载模块的扩展配置文件
load_ext_file(MODULE_PATH);

通过load_ext_file方法 可以自定义加载任何你需要加载的公共文件。


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants