<commit_before>Installation
============

Prerequisites
-------------
This version of the bundle requires Symfony 2.3+.

Translation
-----------
If you wish to use default texts provided in this bundle, you have to make sure you have translator enabled in your config.

.. code-block:: yaml

   # app/config/config.yml
   
   framework:
       translator: ~

For more information about translations, check `Symfony documentation <http://symfony.com/doc/current/book/translation.html>`_.

Installation
------------

Installation steps :

1. Download O2UIBundle using composer.
2. Enable the bundle.

Step 1 : Download O2UIBundle using composer
+++++++++++++++++++++++++++++++++++++++++++

Add O2UIBundle in your composer.json :

.. code-block:: json

   {
       "require": {
           "oxyfony/ui-bundle": "dev-master"
       }
   }
   
Now tell composer to download the bundle by running the command :
   
.. code-block:: bash

   $ php composer.phar update oxyfony/ui-bundle
   
A different way is to add it drectly with the command line below :

.. code-block:: bash

   $ cd /path/to/application
   $ php composer.phar require oxyfony/ui-bundle
   
Composer will install the bundle to your project's vendor/oxyfony directory.

Step 2 : Enable the bundle
++++++++++++++++++++++++++

Enable the bundle in the kernel :

.. code-block:: php

   // app/AppKernel.php
   
   public function registerBUndles()
   {
       $bundles = array(
           new O2\Bundle\UIBundle\O2UIBundle(),
       );
   }
   
Ajouter les composants CSS and JS à vos vues de l'application
-------------------------------------------------------------

Après avoir installé le bundle, vous devez installé les composants CSS et JS et les inclure dans les
vues de votre projet.


<commit_msg>Updating documentation<commit_after>Installation
============

Prerequisites
-------------
This version of the bundle requires Symfony 2.3+.

Translation
-----------
If you wish to use default texts provided in this bundle, you have to make sure you have translator enabled in your config.

.. code-block:: yaml

   # app/config/config.yml
   
   framework:
       translator: ~

For more information about translations, check `Symfony documentation <http://symfony.com/doc/current/book/translation.html>`_.

Installation
------------

Installation steps :

1. Download O2UIBundle using composer.
2. Enable the bundle.

Step 1 : Download O2UIBundle using composer
+++++++++++++++++++++++++++++++++++++++++++

Add O2UIBundle in your composer.json :

.. code-block:: json

   {
       "require": {
           "oxyfony/ui-bundle": "dev-master"
       }
   }
   
Now tell composer to download the bundle by running the command :
   
.. code-block:: bash

   $ php composer.phar update oxyfony/ui-bundle
   
A different way is to add it drectly with the command line below :

.. code-block:: bash

   $ cd /path/to/application
   $ php composer.phar require oxyfony/ui-bundle
   
Composer will install the bundle to your project's vendor/oxyfony directory.

Step 2 : Enable the bundle
++++++++++++++++++++++++++

Enable the bundle in the kernel :

.. code-block:: php

   // app/AppKernel.php
   
   public function registerBUndles()
   {
       $bundles = array(
           new O2\Bundle\UIBundle\O2UIBundle(),
       );
   }
   
Add CSS and JS compenents for your project
------------------------------------------

After the installation of the bundle in your project, you have to donwload and install CSS or JS files according to the 
`Symfony Good Practices Guide <http://symfony.com/en/doc/current/cookbook/bundles/best_practices.html#vendors>`_.
{'fraction_non_alphanumeric': 0.16325401217487548, 'fraction_numerical': 0.006087437742114001, 'mean_word_length': 2.604187437686939, 'pattern_counts': {'":': 4, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2243229', 'n_tokens_mistral': 1051, 'n_tokens_neox': 1000, 'n_words': 359}