sundyandy
V2EX  ›  PHP

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

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