Posts Tagged: Symfony2

Symfony2 and .gitignore

*Updated 29th october 2012* Here are the settings i use for my .gitignore in a symfony project. Generic ignores: ## generic files to ignore *~ *.lock *.DS_Store *.swp *.out IDE files are personal and not interesting for other people: ## IDE files to ignore nbproject/ .idea/ *.tmproj Symfony specific ignore files: # Symfony files to… Read more »

Installing Symfony2

Here is a small video of how to install Symfony2 with git version control. My first video tutorial in years and I mumble a bit but I hope someone likes it ;). [youtube=] The following commands where used: To install the vendors use php bin/vendors install Clear the cache and the logs rm -rf app/cache/*… Read more »

Symfony2 and Timestampable example

To add Timestampable behaviour you need to add DoctrineExtentions to your app see my previous post Symfony2 and DoctrineExtensions for information of how to do that. You need to add the following in the top of the Entity use Gedmo\Mapping\Annotation as Gedmo; and then you can use it like this in your entity: /** * @var… Read more »

Symfony2 and DoctrineExtensions

To add commonly used behaviors to Symfony 2 (eg Doctrine 2) you need to add DoctrineExtentions to your application. DoctrineExtensions adds the following behaviour to Doctrine 2: Tree – this extension automates the tree handling process and adds some tree specific functions on repository. (closure or nestedset) Translatable – gives you a very handy solution for translating records… Read more »