Home  >  Article  >  Backend Development  >  thinkphp 3.1 How to call model across folders

thinkphp 3.1 How to call model across folders

WBOY
WBOYOriginal
2016-08-25 10:37:131240browse

Directory format
admin ->Lib->Model->AbcModel.class.php
I want to call this admin/AbcModel under
home

I don’t want to change the original D A method
Both of them use import and there is no transmission path

What to do?

Reply content:

Directory format
admin ->Lib->Model->AbcModel.class.php
I want to call this admin/AbcModel under
home

I don’t want to change the original D A method
Both of them use import and there is no transmission path

What to do?

Why do you need to modify the original method? A and R support cross-module calls. You may not be using it correctly. Please refer to the manual
http://doc.thinkphp.cn/manual...

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn