Symfony2

How to Configure a Custom php.ini file for a Website

There are a few ways to create a custom php.ini configuration directives for an apache website. Create a phpinfo.php file with the following content within your document root.

View this file in your browser and look near the top for which Server API is running PHP. If PHP is being run by CGI If the phpinfo.php… Read more How to Configure a Custom php.ini file for a Website

How to Add Current URL from Within Symfony2 Controller

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:

Hope this helped you find it fast!