sundyandy
V2EX  ›  PHP

laravel 怎么在 view 里生成带 query_string 的 url?

  •  
  •   sundyandy · Aug 6, 2015 · 4318 views
    This topic created in 4113 days ago, the information mentioned may be changed or developed.

    类似aaa/bbb/?xxx=yyy 这种风格的

    6 replies  •  2015-08-07 11:10:27 +08:00
    kslr
    kslr
    Aug 6, 2015
    1
    自己拼不就行了么?
    kchum
    kchum
    Aug 6, 2015 via iPhone
    2
    不知道你的什么版本,应该是用 route($routename,$param) $params 是数组。
    sundyandy
    sundyandy
    OP
    Aug 7, 2015
    5
    @kchum 用这个方法生成的是aaa/bbb/param1/param2 这种风格的,我用的5.1
    bearcat001
    bearcat001
    Aug 7, 2015
    6
    可以自己拼接,或者4楼的方法。 4楼方法需要安装库
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1015 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 18:42 · PVG 02:42 · LAX 10:42 · JFK 13:42
    ♥ Do have faith in what you're doing.