久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      聊聊laravel5中Form與HTML的使用

      最近在用 laravel 5 做例子,在做到表單的時候,習(xí)慣性的使用 Form::open() 結(jié)果發(fā)現(xiàn)提示錯誤,沒有這個類,

      好吧,找了找,發(fā)現(xiàn) 在laravel 5 中,把 from 和 html 單獨的提出去了,下面就是安裝使用方法啦

      添加到 composer.json


      "require": { "illuminate/html": "~5.0" },

      更新


      composer update

      更新完以后,打開 /config/app.php

      providers 數(shù)組下面添加


      'IlluminateHtmlHtmlServiceProvider',

      aliases 數(shù)組下面添加

      'Form'      => 'IlluminateHtmlFormFacade', 'HTML'      => 'IlluminateHtmlHtmlFacade'

      這樣就安裝好啦!

      使用方法

      以前寫法是這樣的

      {{Form::open()}}  {{Form::close()}}

      現(xiàn)在變成這樣的了

      {!! Form::open() !!}  {!! Form::close() !!}

      以下這段參考于@安靜的文章
      如果不太適應(yīng)使用{!! HTML::script() !!}

      請到路由文件routes.php中,配置以下代碼


      Blade::setRawTags('{{', '}}');

      即可回歸到{{ HTML::script('js/jquery.js') }}

      參考完畢 文章地址 http://wenda.golaravel.com/article/242

      基本上就是這樣,

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號