Tag Archives: symfony

Check if file exists in Symfony2

Check if file exists in Symfony2 If you want want to check if file exists in Symfony2 and which is not a twig template, you have to create a Twig Extension service and add a file_exists() function or whatever you want to call it in twig. This tutorial is more specific to the issue we have at hand,

Working with Entities in Symfony2

Working with Entities in Symfony2 Symfony is a very powerfull PHP framework that helps you do amazing projects in small amount of time. It has built in support for Doctrine which is an incredible tool for interacting with databases, not through tables but through php objects. First let’s see what is an ORM and after that

Symfony mapped entities error while generating getters and setters

snippets

Symfony mapped entities error while generating getters and setters If you ever used Symfony php framework, and you wanted to generate through command line the setters and getters for your entity after you defined everything in your entities files, and you got an error like this:

you probably want to know the solution of

The controller for URI is not callable in symfony

snippets

The controller for URI is not callable in symfony This is a very common error for symfony starters, and it happened to me also when I first tried the framework, so you have to follow two steps in order to debug this: First check First step is to make sure that your controller is actually

5 of the best PHP frameworks for programmers

MVC PHP frameworks

A bit about php frameworks This is a topic that is not very well understood  by people who jump into development pool. PHP frameworks help to promote rapid application development, which saves you time, helps build more stable applications, and reduces the amount of repetitive coding for developers. Frameworks can also help beginners to build more

Request an article ←