Diego
Diego

Reputation: 31

Typo3 Generate link in controller

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}">>&nbsp;</f:link.action>

But how to generate above link in controller? Thanks in advance.

Upvotes: 2

Views: 2169

Answers (1)

Bill.Dagou
Bill.Dagou

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

Related Questions