当前位置:Gxlcms > PHP教程 > thinkphpfetch往里面传递参数

thinkphpfetch往里面传递参数

时间:2021-07-01 10:21:17 帮助过:31人阅读

我想传递一个参数 a=1如何传递进去

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

回复内容:

我想传递一个参数 a=1如何传递进去

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

在模板中使用a吗?

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

这里的 $this 是Controller 还是View, 还是Template?

人气教程排行