,如何将变量传递给以下template.phtml? p>
例如我正在主页中加载我的template.phtml: p>
<?= $ this-> render(“layout / forms / template “);?>
code> pre>
其中 template.phtml code>有以下代码,但我需要在此模板中打印一些内容:< 代码>&lt;?= $ this-&gt; ?????????????? code>传递值来自:&lt;?= $ this-&gt; render(“layout / forms / template“);?&gt; code> p>
&lt; h1 class =”free-trial-title“&gt;更多信息:&lt;?= $ this- &gt; ????????;?&gt;&lt; / h1&gt;
&lt; section class =“free-trial-form”&gt;
&lt; input type =“text”name =“txtName”id =“txtName”占位符=“全名”/&gt;&lt; em&gt; *&lt; / em&gt;&lt; br /&gt;
&lt; a class =“read-more”id =“btnContactMoreInfo”nohref&gt; SUBMIT&LT; / A&GT;
&lt; / section&gt;
code> pre>
如何将值从主页传递到该template.phtml? p>
div >