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

WBOY
Release: 2016-06-06 20:11:34
Original
1274 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:
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!