Commit 4491f79d authored by Fabien Potencier's avatar Fabien Potencier

added a note about the locale component in the form docs

parent 71310c08
......@@ -56,6 +56,25 @@ register the ``symfony/config`` and ```symfony/translation`` components::
"symfony/translation": "2.1.*"
}
The Symfony Form Component relies on the PHP intl extension. If you don't have
it, you can install the Symfony Locale Component as a replacement::
.. code-block:: json
"require": {
"symfony/locale": "2.1.*"
}
Then, enable it in your code::
$path = __DIR__.'/vendor/symfony/locale/Symfony/Component/Locale/Resources/stubs';
require_once $path.'/functions.php';
require_once $path.'/Collator.php';
require_once $path.'/IntlDateFormatter.php';
require_once $path.'/Locale.php';
require_once $path.'/NumberFormatter.php';
Usage
-----
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment