<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之旅 廣告
                ## 基礎使用 介紹簡單的使用模板引擎進行內容渲染 [TOC] ### 分配變量 ~~~ View::with('name', 'value'); App::make('View')->with('name','value); /** * 分配變量 * @param [type] $name [名稱或者key=>value的關聯數組] * @param [type] $value [值,如果name是數組值無效] * @return [type] [$this] */ public function with($name, $value = '') ~~~ ### 渲染內容 #### make方法 ~~~ /** * 為toString方法的調用做準備 * @param [type] $path [模板名稱] * @param [type] $var [key=>value的關聯數組,分配變量] * @return [type] [$this] */ public function make($path, array $vars = []) ~~~ #### fetch返回渲染好的內容 ~~~ /** * 返回模板編譯后的字符串 * @param [type] $path [模板文件] * @return [type] [description] */ public function fetch($file, array $vars = []) ~~~ #### show編譯渲染內容 ~~~ /** * 直接編譯字符串 * @param [type] $con [內容] * @return [type] [description] */ public function show($con, $vars = []) ~~~ #### display直接輸出內容 ~~~ /** * 直接輸出模板 * @param [type] $path [模板文件] * @return [type] [description] */ public function display($path, array $vars = []) ~~~ ### 獲取實例 通常情況下,視圖組件是單例的調用方法,如果想要獲取新的實例可以使用下面的方法 ~~~ View::getInstance(); ~~~ ### 編譯內容 返回編譯好的內容 注意:僅僅是編譯好并不是渲染完成 ~~~ /** * 編譯 * @param [type] $con [需要編譯的內容] * @return [type] [編譯好的內容] */ protected function compile($con = '') ~~~
                  <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>

                              哎呀哎呀视频在线观看