0
在ZF2中,我如何将一个变量传递给下面的template.phtml?Zend框架 - 如何将变量传递给模板?
例如我加载我的template.phtml在主页下面:
<?=$this->render("layout/forms/template");?>
其中template.phtml
有下面的代码,但我需要在这里印的东西,在模板中:通过传递价值<?=$this->????????;?>
: <?=$this->render("layout/forms/template");?>
<h1 class="free-trial-title">More Information: <?=$this->????????;?></h1>
<section class="free-trial-form">
<input type="text" name="txtName" id="txtName" placeholder="Full Name"/><em>*</em><br/>
<a class="read-more" id="btnContactMoreInfo" nohref>SUBMIT</a>
</section>
如何将主页中的值传递给template.phtml?