Skip to content
This repository has been archived by the owner on Mar 7, 2020. It is now read-only.

配置是出现Call to undefined method think\Loader::import() #1

Open
lesliezjm opened this issue Jul 3, 2018 · 1 comment
Open

Comments

@lesliezjm
Copy link

image

@huzhenjie
Copy link

@lesliezjm

在thinkPHP 5.1.X新版取消了Loader::import方法以及import和vendor助手函数,推荐全面采用命名空间方式的类以及自动加载机制,如果必须使用请直接改为php内置的include或者require语法。
原来的import("Vendor.Classes.PHPExcel.IOFactory");或Vendor('phpoffice.phpexcel.Classes.PHPExcel.IOFactory');方法已经不再使用。

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

No branches or pull requests

2 participants