Home > Backend Development > PHP Tutorial > ThinkPHP model里面的函数调用怎么写?

ThinkPHP model里面的函数调用怎么写?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:11:34
Original
1373 people have browsed it

就是说,像下面的图里面,funcA里怎么调用funcB?

ThinkPHP model里面的函数调用怎么写?

回复内容:

就是说,像下面的图里面,funcA里怎么调用funcB?

ThinkPHP model里面的函数调用怎么写?

<code>public function funcA($catID){
   return $this->funcB($catID);
}           

                                 </code>
Copy after login

先用D方法把模型引来,在用$this->调用.

看不明白你想表达啥?

$this->funcb()

Related labels:
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
Why thinkphp has better performance than laravel?
From 1970-01-01 08:00:00
0
0
0
ThinkPHP Why use composer?
From 1970-01-01 08:00:00
0
0
0
thinkphp versions supported by php6
From 1970-01-01 08:00:00
0
0
0
thinkphp upload files
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