Home » Article » Symfony » Page 2

With Symfony 2 development you have a built in solution for storing sessions in the database. This is called PdoSessionHandler. In order to use this option in Symfony 2, you need to change a few parameters here and there. The config.yml file is a good start. # app/config/config.yml framework: session: # ...

Read More

In Symfony 2 Development, a bundle is a directory that has a structure that is well defined and it can host classes, controllers, web resources and much more. Bundles are very flexible. But it is essential that you are well informed of the best practices to use and distribute them. Here are some of the best practices while you structure bundles in Symfony 2   Bundle Name A Bundle...

Read More

For this tutorial, let’s check how to create user API as an example. Clients need to know how to talk to your API. In the HTTP protocol, the AcceptHeader will receive the format the clients want to talk to your API. The FOSRestBundle handles all this communication. You only need to configure the formats that you wish to support. JSON can be used for this purpose....

Read More

Varnish is an open source HTTP accelerator that is powerful enough to be capable of serving cached content quickly. It also includes support for Edge Side Includes that allows certain parts of the pages to have a different caching strategy than the main page. The good part about Symfony 2 is that it’s cache uses standard HTTP cache headers and the Symfony 2 Reverse Proxy...

Read More

Sometimes, Symfony presents unique problems with classes being silently redeclared. So much so that you might think that you are making changes to one file but your changes don’t have any effect. Declaring a class in two separate files with that have the same filename, results in Symfony (Or similar frameworks) that have an autoloader to load only the first file that it gets to. This is...

Read More

Many a times, while you are working on a Symfony web development project, you might come across the need to create a scheduled task that runs in the background at a specific time on your web server. This is exactly what a cron job can help you with. Cron jobs are created with the help of a program called crontab on a UNIX/LINUX type web...

Read More

Symfony development offers great opportunities for performance optimization. Clearing cache seems to be one of the many ways in Symfony to accelerate performance. Let’s say, your environment may be complicated and it consists of a multi-server environment – either a cluster environment where you use two or more servers that share common storage – for this example, sharing the same database, or a single server...

Read More

While many people or developers are rapidly adopting for Symfony2 development, there has been a strong debate among the developers about how Symfony2 differs from Symfony 1.4. Many developers argue that there is a slight difference between Symfony 1.4 and its successor, but opinions generally vary from one to another. Each and every developer may have different preferences when it comes to the coding style and...

Read More

In the recent years, PHP frameworks have gained immense popularity across the world. When we talk about PHP frameworks, the first names that will come into your mind would be “Symfony” & “Zend Framework”. Of course, they both are one of the most popular and extensively used PHP frameworks till date. Of course, both Symfony and Zend frameworks are capable enough to help businesses get complicated...

Read More

You all might be aware about the current trend of using a wide range of frameworks to build web applications, and when we talk about frameworks how can we forget about the much talked about PHP framework – “Symfony”. Recently, a month back its latest version Symfony 2.3.3 has been launched, which shows how rapidly it is gaining momentum and becoming popular among the developers...

Read More