My first post in rst

How to configure AsseticBundle

System Message: ERROR/3 (/home/cordoval/sites-2/sf2docs/cookbook/assetic.rst, line 1)

Unknown directive type "index".

.. index::
   single: Assets; AsseticBundle

This is an introduction on Assetic use.

Looking at the symfony bundle at vendor/symfony/src/Symfony/Bundle/AsseticBundle/Resources/config/filters we find that Assetic support several filters for different styling frameworks:

System Message: WARNING/2 (/home/cordoval/sites-2/sf2docs/cookbook/assetic.rst, line 23)

Bullet list ends without a blank line; unexpected unindent.

yui_css.xml cssrewrite.xml less.xml scss.xml yui_js.xml


Instead of using your regular Gmail account, it’s of course recommended that you create a special account.

In the development configuration file, change the transport setting to gmail and set the username and password to the Google credentials:

System Message: ERROR/3 (/home/cordoval/sites-2/sf2docs/cookbook/assetic.rst, line 38)

Unknown directive type "configuration-block".

.. configuration-block::

    .. code-block:: yaml

        # app/config/config_dev.yml
            transport: gmail
            username:  your_gmail_username
            password:  your_gmail_password

    .. code-block:: xml

        <!-- app/config/config_dev.xml -->


            password="your_gmail_password" />

    .. code-block:: php

        // app/config/config_dev.php
        $container->loadFromExtension('swiftmailer', array(
            'transport' => "gmail",
            'username'  => "your_gmail_username",
            'password'  => "your_gmail_password",

You’re done!


The gmail transport is simply a shortcut that uses the smtp transport and sets encryption, auth_mode and host to work with Gmail.

Leave a Reply

Your email address will not be published. Required fields are marked *