thinkphp 3.1 How to call model across folders

WBOY
Release: 2016-08-25 10:37:13
Original
1239 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
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!