Reputation: 31
I'm facing with issue like this : I'm trying to get uri in controller. I created an API and return link via JSON. In view I can do this
<f:link.action action="list" arguments="{location : location, myId : location.uid}">> </f:link.action>
But how to generate above link in controller? Thanks in advance.
Upvotes: 2
Views: 2169
Reputation: 260
Have you tried $this->uriBuilder->uriFor()
, which will get you the URI, and you could come up your own link as you needed.
Upvotes: 3