Search code examples
phpphalconvolt

How to create a volt URL with parameters


I want to create a URL using volt (Phalcon).

I have tried:

{{ url("order/view/", ["id" :order.id]) }}

However that produces a URL like:

http://localhost/gateway-new/order/view/?id=7

Whereas I would like the url to look like:

http://localhost/gateway-new/order/view/id/7

Any idea how to do this correctly?


Solution

  • {{ url("order/view/id/" ~  order.id) }}