-
05.12.11 - LESS CSS with Assetic and Symfony 2
extends CSS with dynamic behavior such as variables, mixins, operations and functions.For the LESS Assetic filter we need to have installed first , the npm package manager and the LESS library. Under Ubuntu you can install all of those in an easy way through the terminal: Install the LESS library: [...]
-
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 [...]
-
03.12.11 - Make public MySQL server under Linux
For security reasons when you install into your Linux distro (Ubuntu, CentOS, etc.) a MySQL server, it was only accessible by the loopback or local environment. If you want to access through the network to it you have to configure it.We have to edit your "/etc/my.conf" and add/edit the next lines: [...]
-
18.10.11 - Install Google Chrome on Ubuntu 11.10
Some libs was were included in previous versions of Ubuntu, on the new release 11.10 (Oneiric Ocelot) are missing. If you try to install the Google Chrome .deb package for Ubuntu it may raise an error. The real problem are the not installed dependencies.Once , you have to install them manually [...]
-
02.10.11 - i18n in Twig extensions with Symfony 2
First of all we have to connect our Twig extension with the translation service. We have to configure the dependency injection container to do that.Prepare the dependency injection container to load the configuration from an XML file Connect the Twig extension engine with the translator service [...]
-
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), [...]