sundyandy
V2EX  ›  PHP

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

  •  
  •   sundyandy · Aug 6, 2015 · 4090 views
    This topic created in 3992 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   ·   2368 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 00:41 · PVG 08:41 · LAX 17:41 · JFK 20:41
    ♥ Do have faith in what you're doing.