<tfoot id='1c5Ck'></tfoot>

  1. <small id='1c5Ck'></small><noframes id='1c5Ck'>

      <bdo id='1c5Ck'></bdo><ul id='1c5Ck'></ul>
  2. <i id='1c5Ck'><tr id='1c5Ck'><dt id='1c5Ck'><q id='1c5Ck'><span id='1c5Ck'><b id='1c5Ck'><form id='1c5Ck'><ins id='1c5Ck'></ins><ul id='1c5Ck'></ul><sub id='1c5Ck'></sub></form><legend id='1c5Ck'></legend><bdo id='1c5Ck'><pre id='1c5Ck'><center id='1c5Ck'></center></pre></bdo></b><th id='1c5Ck'></th></span></q></dt></tr></i><div id='1c5Ck'><tfoot id='1c5Ck'></tfoot><dl id='1c5Ck'><fieldset id='1c5Ck'></fieldset></dl></div>

    <legend id='1c5Ck'><style id='1c5Ck'><dir id='1c5Ck'><q id='1c5Ck'></q></dir></style></legend>

      Laravel 4 - 刀片模板 - 如何正确链接到路线?

      时间:2023-10-31

      1. <small id='iHb8i'></small><noframes id='iHb8i'>

          <tbody id='iHb8i'></tbody>

        <legend id='iHb8i'><style id='iHb8i'><dir id='iHb8i'><q id='iHb8i'></q></dir></style></legend>
            1. <tfoot id='iHb8i'></tfoot>
                <bdo id='iHb8i'></bdo><ul id='iHb8i'></ul>
                <i id='iHb8i'><tr id='iHb8i'><dt id='iHb8i'><q id='iHb8i'><span id='iHb8i'><b id='iHb8i'><form id='iHb8i'><ins id='iHb8i'></ins><ul id='iHb8i'></ul><sub id='iHb8i'></sub></form><legend id='iHb8i'></legend><bdo id='iHb8i'><pre id='iHb8i'><center id='iHb8i'></center></pre></bdo></b><th id='iHb8i'></th></span></q></dt></tr></i><div id='iHb8i'><tfoot id='iHb8i'></tfoot><dl id='iHb8i'><fieldset id='iHb8i'></fieldset></dl></div>
              • 本文介绍了Laravel 4 - 刀片模板 - 如何正确链接到路线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我想用 Laravel 创建一个资源丰富的链接.通常我只使用 {{ link_to_route('Yadayadayada.route', 'LinkName', $params }}

                I want to create a resourceful link with Laravel. Normally I just use the {{ link_to_route('Yadayadayada.route', 'LinkName', $params }}

                但在这种情况下,我使用的是具有这种布局的模板:

                But in this case I am using a Template with this layout:

                <a href="index.html">
                     <i class="icon-dashboard"></i>
                     <span class="menu-text"> Dashboard </span>
                </a>
                

                这意味着在锚标记内部,还有一个 <i>-Tag 和一个 <span>-Tag.是否可以使用 {{ link_to_route }}-Method,而无需更改模板的布局?

                That means that inside the anchor tag, is as well a <i>-Tag and a <span>-Tag. Is it possible to use the {{ link_to_route }}-Method, without having to change the layout of the Template?

                推荐答案

                使用 URL::route() 只获取一个链接:

                Use URL::route() to get just a link:

                <a href="{{ URL::route('user/profile/', $params) }}">
                     <i class="icon-dashboard"></i>
                     <span class="menu-text"> Dashboard </span>
                </a>
                

                这篇关于Laravel 4 - 刀片模板 - 如何正确链接到路线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:使用 laravel 验证检查名称在未删除项目中是否唯一 下一篇:在 Laravel 中如何以及在何处应用 XSS 保护?

                相关文章

                <small id='1Az9R'></small><noframes id='1Az9R'>

                  <tfoot id='1Az9R'></tfoot>

                  1. <i id='1Az9R'><tr id='1Az9R'><dt id='1Az9R'><q id='1Az9R'><span id='1Az9R'><b id='1Az9R'><form id='1Az9R'><ins id='1Az9R'></ins><ul id='1Az9R'></ul><sub id='1Az9R'></sub></form><legend id='1Az9R'></legend><bdo id='1Az9R'><pre id='1Az9R'><center id='1Az9R'></center></pre></bdo></b><th id='1Az9R'></th></span></q></dt></tr></i><div id='1Az9R'><tfoot id='1Az9R'></tfoot><dl id='1Az9R'><fieldset id='1Az9R'></fieldset></dl></div>
                    <legend id='1Az9R'><style id='1Az9R'><dir id='1Az9R'><q id='1Az9R'></q></dir></style></legend>
                    • <bdo id='1Az9R'></bdo><ul id='1Az9R'></ul>