<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                <table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><th colspan="3" align="center">Smarty - the compiling PHP template engine</th></tr><tr><td width="25%" align="left" valign="bottom"><a href="advanced.features.tem.inheritance.html">Prev</a></td><td width="50%" align="center" valign="bottom">Chapter 15. Advanced Features 高級特性</td><td width="25%" align="right" valign="bottom"> <a href="advanced.features.objects.html">Next</a></td></tr></table> # [Streams]()[數據流] Streams allow you to use PHP streams as a template resource or a variable resource. The syntax is much the same a traditional template resource names. Smarty will first look for a registered template resource. If nothing is found, it will check if a PHP stream is available. If a stream is available, Smarty will use it to fetch the template. streams數據流允許你使用php數據流作為模板資源或變量資源。語法與傳統的模板資源命名基本一樣。 Smarty首先會搜索一個注冊的模板資源。如果沒找到,它會檢查php數據流是否是一個變量,如果是,Smarty會將其從模板中取出使用。 <table width="80%" border="0" cellpadding="2" cellspacing="2" class="note"><caption> 提示 </caption> <tr><td>Note<br/> You can further define allowed streams with security enabled.<br/> 可以進一步啟動安全策略定義允許的數據流。</td> </tr></table> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="EXAMPLE"><tr><td> <div class="EXAMPLE"> <p><strong><a name="AEN4158" id="AEN4158"> </a>Example 15.8. Stream from PHP<br/> 例15-8.來自php的數據流</strong><br/> Using a PHP stream for a template resource from the display() function. <br/> 通過display()函數使用php數據流作模板資源。</p> <table border="0" bgcolor="#E0E0E0" width="100%"><tr><td> $smarty-&gt;display('foo:bar.tpl');</td></tr></table><p><strong>Example 15.9. Stream from Template<br/>例15-9.來自模板的數據流</strong><strong/><br/> Using a PHP stream for a template resource from within a template.<br/> 在模板內部使用php數據流作為模板資源。</p> <table border="0" bgcolor="#E0E0E0" width="100%"><tr><td> {include file="foo:bar.tpl"}</td> </tr></table><p>You can also use streams to call variables. {$foo:bar} will use the foo://bar stream to get the template variable.<br/> 可以通過數據流調用變量,{$foo:bar}使用foo://bar數據流獲取模板變量。</p> <p><strong>Example 15.10. Stream Variable<br/> 例15-10.數據流變量</strong><br/> Using a PHP stream for a template variable resource from within a template.<br/> 在模板內部使用php數據流作為模板變量資源。</p> <table border="0" bgcolor="#E0E0E0" width="100%"><tr><td> {$foo:bar}</td> </tr></table><p> 參見<a href="template.resources.html">模板資源</a>。</p> </div></td></tr></table> <table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="33%" align="left" valign="top"><a href="advanced.features.tem.inheritance.html">Prev</a></td><td width="34%" align="center" valign="top"><a href="index.html">Home</a></td><td width="33%" align="right" valign="top"> <a href="advanced.features.objects.html">Next</a></td></tr><tr><td width="33%" align="left" valign="top">Template Inheritance<br/> 模板繼承</td><td width="34%" align="center" valign="top"><a href="smarty.for.programmers.html">Up</a></td><td width="33%" align="right" valign="top">Objects<br/> 對象</td></tr></table>
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看