Home >Backend Development >PHP Tutorial >thinkphp fetch passes parameters inside
I want to pass a parameter a=1, how to pass it in
<code> echo $content = $this->fetch("Need@Need:readBizProduceOrder");</code>
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?