Home  >  Article  >  Backend Development  >  thinkphp fetch passes parameters inside

thinkphp fetch passes parameters inside

WBOY
WBOYOriginal
2016-10-17 09:30:223419browse

I want to pass a parameter a=1, how to pass it in

<code> echo $content = $this->fetch("Need@Need:readBizProduceOrder");</code>

Reply content:

I want to pass a parameter a=1, how to pass it in

<code> echo $content = $this->fetch("Need@Need:readBizProduceOrder");</code>

Use a in template?

<code>$this->assign("a", 1);
echo $content = $this->fetch("Need@Need:readBizProduceOrder");</code>

Is $this here a Controller, a View, or a Template?

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