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

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

WBOY
WBOYOriginal
2016-06-06 20:11:341303browse

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

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

回复内容:

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

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

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

                                 </code>

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

看不明白你想表达啥?

$this->funcb()

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