2013-06-05 48 views
1

我正在使用刀片的模板語法錯誤...刀片模板部分錯誤

<title> 
    @section('title') 
     this is my title 
    @show 
</title> 

生成的輸出無法關閉開口PHP標籤?

<title> 
    <?php $__env->startSection('title') 
     this is my title 
    <?php echo $__env->yieldSection(); ?> 
</title> 

如果做到以下幾點它按預期工作我...

<title> 
    @section('title'); ?> 
     this is my title 
    @show 
</title> 

任何想法?

謝謝。

+0

您確定這是您的代碼?沒有什麼問題。我相信你實際上有一條線,這會導致這個問題。 – Robbo

+0

@Robbo絕對不在一條線上。我曾嘗試剝離一切就標籤的期待我的但仍然沒有改變...讓我雞姦:( – <span class="text-secondary"> <small> <a rel="noopener" target="_blank" href="https://stackoverflow.com/users/718793/">mybigman</a></span> <span></span> </small> </span> </p> </div> </div> </div> <div itemprop="comment" class="post-comment"> <div class="row"> <div class="col-lg-1"><span class="text-secondary">+1</span></div> <div class="col-lg-11"> <p class="commenttext">只有我能想到的事情就是也許你的行結束與編譯器使用? – <span class="text-secondary"> <small> <a rel="noopener" target="_blank" href="https://stackoverflow.com/users/1262923/">Robbo</a></span> <span></span> </small> </span> </p> </div> </div> </div> </div> </div> </article> </div> <div class="answer-title"> <span class="text-logo margin-top-sm">A</span> <h2 class="title h4">回答</h2> </div> <div class="item-description text-md markdown-body margin-bottom-40 voidso"> <article class="board-top-1 padding-top-10"> <div class="post-col vote-info"> <span class="count">0<i class="fa fa-thumbs-up"></i></span> </div> <div class="post-offset"> <div class="answer fmt"> <p>試着改變你的代碼如下所示,</p> <pre><code class="prettyprint-override"><title> @section('title') this is my title @stop </title> </code></pre> <p><strong><em>注:</em></strong>我已經改變<strong>@show</strong>到<strong>@stop</strong>你的代碼中。</p> </div> <div class="post-info"> <div class="post-meta row"> <p class="text-secondary col-lg-6"> <span class="source"> <a rel="noopener" target="_blank" href="https://stackoverflow.com/q/23315796">來源</a> </span> </p> <p class="text-secondary col-lg-6"> <span class="float-right date"> <span>2014-04-26 19:53:51</span> </p> <p class="col-12"></p> <p class="col-12"></p></div> </div> </div> </article> <div> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-6208739752673518" data-ad-slot="1038284119" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <article class="board-top-1 padding-top-10"> <div class="post-col vote-info"> <span class="count">0<i class="fa fa-thumbs-up"></i></span> </div> <div class="post-offset"> <div class="answer fmt"> <p>它看起來像一個EOL轉換問題。 如果您在Windows上使用Notepad ++,請確保您有<code class="prettyprint-override">'Edit/EOL Conversion/Windows Format'</code>。</p> </div> <div class="post-info"> <div class="post-meta row"> <p class="text-secondary col-lg-6"> <span class="source"> <a rel="noopener" target="_blank" href="https://stackoverflow.com/q/23319565">來源</a> </span> </p> <p class="text-secondary col-lg-6"> <span class="float-right date"> <span>2014-04-27 04:54:29</span> <a rel="noopener" target="_blank" href="https://stackoverflow.com/users/3546489/">EasyPHP</a></span> </p> <p class="col-12"></p> <p class="col-12"></p></div> </div> </div> </article> </div> <div class="clearfix"> </div> <div class="relative-box"> <div class="relative">相關問題</div> <ul class="relative_list"> <li> 1. <a href="http://hk.uwenku.com/question/p-ptonzpag-eq.html" target="_blank" title="Laravel刀片模板拋出錯誤"> Laravel刀片模板拋出錯誤 </a> </li> <li> 2. <a href="http://hk.uwenku.com/question/p-hwzhjcdh-bcu.html" target="_blank" title="Laravel刀片模板"> Laravel刀片模板 </a> </li> <li> 3. <a href="http://hk.uwenku.com/question/p-cgxwtnli-bgq.html" target="_blank" title="Laravel - 刀片模板定義部分/包括"> Laravel - 刀片模板定義部分/包括 </a> </li> <li> 4. <a href="http://hk.uwenku.com/question/p-odvpckvd-ro.html" target="_blank" title="帶有angular2模板的刀片模板?"> 帶有angular2模板的刀片模板? </a> </li> <li> 5. <a href="http://hk.uwenku.com/question/p-uxcmlpay-kp.html" target="_blank" title="刀片模板視圖"> 刀片模板視圖 </a> </li> <li> 6. <a href="http://hk.uwenku.com/question/p-wvsilpnv-eb.html" target="_blank" title="laravel刀片視圖模板"> laravel刀片視圖模板 </a> </li> <li> 7. <a href="http://hk.uwenku.com/question/p-omsiyiuo-bcp.html" target="_blank" title="Laravel擴展刀片模板 - $ errors集合中的錯誤"> Laravel擴展刀片模板 - $ errors集合中的錯誤 </a> </li> <li> 8. <a href="http://hk.uwenku.com/question/p-zehqlixe-cn.html" target="_blank" title="Laravel 4刀片模板上的錯誤500"> Laravel 4刀片模板上的錯誤500 </a> </li> <li> 9. <a href="http://hk.uwenku.com/question/p-miihowgl-me.html" target="_blank" title="Laravel刀片模板(未定義類Meta)錯誤"> Laravel刀片模板(未定義類Meta)錯誤 </a> </li> <li> 10. <a href="http://hk.uwenku.com/question/p-ngohwzcw-bak.html" target="_blank" title="如何僅在刀片模板存在時才擴展刀片模板?"> 如何僅在刀片模板存在時才擴展刀片模板? </a> </li> <div> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:block; text-align:center;" data-ad-layout="in-article" data-ad-format="fluid" data-ad-client="ca-pub-6208739752673518" data-ad-slot="4606349252"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <li> 11. <a href="http://hk.uwenku.com/question/p-tkknbfha-ct.html" target="_blank" title="防止模板部分特例錯誤"> 防止模板部分特例錯誤 </a> </li> <li> 12. <a href="http://hk.uwenku.com/question/p-dxfvmftx-ge.html" target="_blank" title="Laravel 5.1模塊化刀片模板"> Laravel 5.1模塊化刀片模板 </a> </li> <li> 13. <a href="http://hk.uwenku.com/question/p-vsypkcvl-os.html" target="_blank" title="如何在刀片模板中退出刀片指令?"> 如何在刀片模板中退出刀片指令? </a> </li> <li> 14. <a href="http://hk.uwenku.com/question/p-kevnfhar-eb.html" target="_blank" title="laravel 5刀片如何重定向刀片模板"> laravel 5刀片如何重定向刀片模板 </a> </li> <li> 15. <a href="http://hk.uwenku.com/question/p-ekvhdpdw-bq.html" target="_blank" title="Laravel /刀片:從刀片模板反覆索引"> Laravel /刀片:從刀片模板反覆索引 </a> </li> <li> 16. <a href="http://hk.uwenku.com/question/p-tywyqmhx-qg.html" target="_blank" title="Laravel和刀片錯誤"> Laravel和刀片錯誤 </a> </li> <li> 17. <a href="http://hk.uwenku.com/question/p-kfawxauv-dg.html" target="_blank" title="用刀片替換樹枝模板"> 用刀片替換樹枝模板 </a> </li> <li> 18. <a href="http://hk.uwenku.com/question/p-nsxgiafq-mw.html" target="_blank" title="Laravel 4刀片模板文檔"> Laravel 4刀片模板文檔 </a> </li> <li> 19. <a href="http://hk.uwenku.com/question/p-rdbvgkvv-po.html" target="_blank" title="刀片模板文本區域在Firefox"> 刀片模板文本區域在Firefox </a> </li> <li> 20. <a href="http://hk.uwenku.com/question/p-hfbrcgij-bgt.html" target="_blank" title="刀片模板未執行@else子句"> 刀片模板未執行@else子句 </a> </li> <li> 21. <a href="http://hk.uwenku.com/question/p-yizdsdwn-ee.html" target="_blank" title="Laravel 4.2刀片模板三元捷徑"> Laravel 4.2刀片模板三元捷徑 </a> </li> <li> 22. <a href="http://hk.uwenku.com/question/p-kyciwjyb-bcp.html" target="_blank" title="刀片模板佈局結構"> 刀片模板佈局結構 </a> </li> <li> 23. <a href="http://hk.uwenku.com/question/p-ybsgogts-bhn.html" target="_blank" title="聲明刀片模板中的變量"> 聲明刀片模板中的變量 </a> </li> <li> 24. <a href="http://hk.uwenku.com/question/p-npneeggl-bmw.html" target="_blank" title="刀片模板遞歸包括"> 刀片模板遞歸包括 </a> </li> <li> 25. <a href="http://hk.uwenku.com/question/p-gnqxjmmu-kz.html" target="_blank" title="過濾器刀片模板laravel收集"> 過濾器刀片模板laravel收集 </a> </li> <li> 26. <a href="http://hk.uwenku.com/question/p-hufsgjkd-bce.html" target="_blank" title="基本刀片模板無效"> 基本刀片模板無效 </a> </li> <li> 27. <a href="http://hk.uwenku.com/question/p-omsrcshd-nt.html" target="_blank" title="Laravel刀片模板呈現2倍"> Laravel刀片模板呈現2倍 </a> </li> <li> 28. <a href="http://hk.uwenku.com/question/p-wecuoypt-zz.html" target="_blank" title="Laravel刀片模板刪除新行"> Laravel刀片模板刪除新行 </a> </li> <li> 29. <a href="http://hk.uwenku.com/question/p-kktqdakp-tk.html" target="_blank" title="Laravel 4:嵌入刀片模板標籤"> Laravel 4:嵌入刀片模板標籤 </a> </li> <li> 30. <a href="http://hk.uwenku.com/question/p-ssvwczex-bnp.html" target="_blank" title="laravel刀片模板中的FatalErrorException"> laravel刀片模板中的FatalErrorException </a> </li> </ul> </div> <div> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-6208739752673518" data-ad-slot="1575177025"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <div class="padding-top-10"></div> </div> </div> <script type="text/javascript" src="http://img.uwenku.com/uwenku/script/side.js?t=1644592048261"></script> <script type="text/javascript" src="http://img.uwenku.com/uwenku/plugin/highlight/highlight.pack.js"></script> <link href="http://img.uwenku.com/uwenku/plugin/highlight/styles/docco.css" media="screen" rel="stylesheet" type="text/css" /> <script type="text/javascript"> $('pre').each(function(i, e) { hljs.highlightBlock(e, "<span class='indent'> </span>", false) }); </script> <div class="col-lg-3 col-md-4 col-sm-5"> <div id="rightTop"> <div class="row"> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-6208739752673518" data-ad-slot="5415218910" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <div class="row sidebar panel panel-default"> <div class="panel-heading font-bold"> 最新問題 </div> <div class="m-b-sm m-t-sm clearfix"> <ul class="side_article_list"> <li class="side_article_list_item"> 1. <a href="http://hk.uwenku.com/question/p-yxiqoflb-bu.html" target="_blank" title="FIFO與/ dev/urandom"> FIFO與/ dev/urandom </a> </li> <li class="side_article_list_item"> 2. <a href="http://hk.uwenku.com/question/p-whezobpa-cp.html" target="_blank" title="將劇情保存爲EMF文件"> 將劇情保存爲EMF文件 </a> </li> <li class="side_article_list_item"> 3. <a href="http://hk.uwenku.com/question/p-nffmqfzm-hb.html" target="_blank" title="如何從SNMP MIB獲取ifOperStatus?"> 如何從SNMP MIB獲取ifOperStatus? </a> </li> <li class="side_article_list_item"> 4. <a href="http://hk.uwenku.com/question/p-vrrebkhm-kr.html" target="_blank" title="在同一個表列中選擇重複的記錄並將它們列出"> 在同一個表列中選擇重複的記錄並將它們列出 </a> </li> <li class="side_article_list_item"> 5. <a href="http://hk.uwenku.com/question/p-xzagrdwt-hw.html" target="_blank" title="如何傳遞一個變量在web API"> 如何傳遞一個變量在web API </a> </li> <li class="side_article_list_item"> 6. <a href="http://hk.uwenku.com/question/p-keloufdr-eb.html" target="_blank" title="LendingClub.com API內部服務器在二級市場上購買票據的錯誤"> LendingClub.com API內部服務器在二級市場上購買票據的錯誤 </a> </li> <li class="side_article_list_item"> 7. <a href="http://hk.uwenku.com/question/p-golxqduv-gs.html" target="_blank" title="TCP/IP數據包中的端口號"> TCP/IP數據包中的端口號 </a> </li> <li class="side_article_list_item"> 8. <a href="http://hk.uwenku.com/question/p-fwrwoodx-ex.html" target="_blank" title="模擬Angular 2中的長響應"> 模擬Angular 2中的長響應 </a> </li> <li class="side_article_list_item"> 9. <a href="http://hk.uwenku.com/question/p-bcntqxlt-z.html" target="_blank" title="如何在QSplitter中設置QTreeView的初始大小?"> 如何在QSplitter中設置QTreeView的初始大小? </a> </li> <li class="side_article_list_item"> 10. <a href="http://hk.uwenku.com/question/p-wjcpqafr-d.html" target="_blank" title="打印響應部分完成Python的異步事件循環,同時還完成任務的響應"> 打印響應部分完成Python的異步事件循環,同時還完成任務的響應 </a> </li> </ul> </div> </div> </div> <p class="article-nav-bar"></p> <div class="row sidebar article-nav"> <div class="row box_white visible-sm visible-md visible-lg margin-zero"> <div class="top"> <h3 class="title"><i class="glyphicon glyphicon-th-list"></i> 相關問題</h3> </div> <div class="article-relative-content"> <ul class="side_article_list"> <li class="side_article_list_item"> 1. <a href="http://hk.uwenku.com/question/p-ptonzpag-eq.html" target="_blank" title="Laravel刀片模板拋出錯誤"> Laravel刀片模板拋出錯誤 </a> </li> <li class="side_article_list_item"> 2. <a href="http://hk.uwenku.com/question/p-hwzhjcdh-bcu.html" target="_blank" title="Laravel刀片模板"> Laravel刀片模板 </a> </li> <li class="side_article_list_item"> 3. <a href="http://hk.uwenku.com/question/p-cgxwtnli-bgq.html" target="_blank" title="Laravel - 刀片模板定義部分/包括"> Laravel - 刀片模板定義部分/包括 </a> </li> <li class="side_article_list_item"> 4. <a href="http://hk.uwenku.com/question/p-odvpckvd-ro.html" target="_blank" title="帶有angular2模板的刀片模板?"> 帶有angular2模板的刀片模板? </a> </li> <li class="side_article_list_item"> 5. <a href="http://hk.uwenku.com/question/p-uxcmlpay-kp.html" target="_blank" title="刀片模板視圖"> 刀片模板視圖 </a> </li> <li class="side_article_list_item"> 6. <a href="http://hk.uwenku.com/question/p-wvsilpnv-eb.html" target="_blank" title="laravel刀片視圖模板"> laravel刀片視圖模板 </a> </li> <li class="side_article_list_item"> 7. <a href="http://hk.uwenku.com/question/p-omsiyiuo-bcp.html" target="_blank" title="Laravel擴展刀片模板 - $ errors集合中的錯誤"> Laravel擴展刀片模板 - $ errors集合中的錯誤 </a> </li> <li class="side_article_list_item"> 8. <a href="http://hk.uwenku.com/question/p-zehqlixe-cn.html" target="_blank" title="Laravel 4刀片模板上的錯誤500"> Laravel 4刀片模板上的錯誤500 </a> </li> <li class="side_article_list_item"> 9. <a href="http://hk.uwenku.com/question/p-miihowgl-me.html" target="_blank" title="Laravel刀片模板(未定義類Meta)錯誤"> Laravel刀片模板(未定義類Meta)錯誤 </a> </li> <li class="side_article_list_item"> 10. <a href="http://hk.uwenku.com/question/p-ngohwzcw-bak.html" target="_blank" title="如何僅在刀片模板存在時才擴展刀片模板?"> 如何僅在刀片模板存在時才擴展刀片模板? </a> </li> </ul> </div> </div> </div> </div> </div> </div> </div><!-- wrap end--> <!-- footer --> <footer id="footer"> <div class="bg-simple lt"> <div class="container"> <div class="row padder-v m-t"> <div class="col-xs-8"> <ul class="list-inline"> <li><a href="http://hk.uwenku.com/contact">聯系我們</a></li> <li>© 2020 HK.UWENKU.COM</li> <li><a target="_blank" href="https://beian.miit.gov.cn/">沪ICP备13005482号-4</a></li> <li><script type="text/javascript" src="https://v1.cnzz.com/z_stat.php?id=1280101193&web_id=1280101193"></script></li> <li><a href="http://www.uwenku.com/" target="_blank" title="优文库">简体中文</a></li> <li><a href="http://hk.uwenku.com/" target="_blank" title="優文庫">繁體中文</a></li> <li><a href="http://ru.uwenku.com/" target="_blank" title="поле вопросов и ответов">Русский</a></li> <li><a href="http://de.uwenku.com/" target="_blank" title="Frage - und - antwort - Park">Deutsch</a></li> <li><a href="http://es.uwenku.com/" target="_blank" title="Preguntas y respuestas">Español</a></li> <li><a href="http://hi.uwenku.com/" target="_blank" title="कार्यक्रम प्रश्न और उत्तर पार्क">हिन्दी</a></li> <li><a href="http://it.uwenku.com/" target="_blank" title="IL Programma di chiedere Park">Italiano</a></li> <li><a href="http://ja.uwenku.com/" target="_blank" title="プログラム問答園区">日本語</a></li> <li><a href="http://ko.uwenku.com/" target="_blank" title="프로그램 문답 단지">한국어</a></li> <li><a href="http://pl.uwenku.com/" target="_blank" title="program o park">Polski</a></li> <li><a href="http://tr.uwenku.com/" target="_blank" title="Program soru ve cevap parkı">Türkçe</a></li> <li><a href="http://vi.uwenku.com/" target="_blank" title="Đáp ứng viên">Tiếng Việt</a></li> <li><a href="http://fr.uwenku.com/" target="_blank" title="Programme interrogation Park">Française</a></li> </ul> </div> </div> </div> </div> </div> </footer> <!-- / footer --> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?f78a970f17b19a79fc477a3378096f29"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> </body> </html>