• 04.12.11 - Minify CSS and JS files with Assetic and Symfony2

    Unify all our CSS and JS stuff into unique minified files improves significantly your application performance.Thanks to the Assetic Symfony2 bundle you can do it on the fly.First, , unzip it and move the "yuicompressor-*.jar" to the "app/Resources/java" folder.Connect Assetic with the compressor [...]
    More news about:  Symfony2
    Tags:  php,  css,  javascript,  Twig,  Symfony2,  Assetic,  YUI compressor,  minify
  • 28.09.11 - Sluggable, Timestampable, etc. in Symfony 2

    In Symfony 2, we can attach this useful behaviours to our model through doctrine extensions. One bundle, , offers a lot of them: , , , y .The above extensions allow, among other things, to transform usual strings into friendly ones, great for URLs (Sluggable), database i18n support (Translatable), [...]
    More news about:  Symfony2
    Tags:  php,  Symfony2,  Sluggable,  Translatable,  Timestampable,  Loggable,  Tree,  Doctrine2
  • 06.09.11 - "Unable to write cache file" problem in Symfony 2

    One common issue in Symfony 2 projects is that the "app/cache" and "app/logs" directories must be writable both by the web server and the command line user. On a UNIX system, if your web server user is different from your command line user, you can run the following commands just once in your [...]
    More news about:  Symfony2
    Tags:  cache,  php,  Symfony2,  Ubuntu,  ACL,  chmod
  • 16.08.11 - Add third party libraries to Symfony 2

    Adding libraries that follows the PHP 5.3.+ with namespaces is trivial, but how we can add an old PHP library without namespaces?For example, if we want to add a library like which haves an old style format (lower than 5.3.+), not follows the standards and it not have namespaces, we have to do a [...]
    More news about:  Symfony2
    Tags:  php,  geshi,  Symfony2,  autoload,  namespaces