Quantcast
Channel: How To – Paul K Leasure
Viewing all articles
Browse latest Browse all 39

How to Add Current URL from Within Symfony2 Controller

$
0
0

I am building a REST app and wanted to include the resources “href” with every response. Being able to easily do this from with a Symfony2 Controller is very convenient.

Here’s the code:

getUri();

... code ...

}

Hope this helped you find it fast!


Viewing all articles
Browse latest Browse all 39

Trending Articles