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

thinkphp 3.1 How to call model across folders

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-08-25 10:37:13
Original
1341 people have browsed it

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...

Related labels:
php
Statement of this Website
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template