Symfony – persistant translate with FOSUserBundle

This page is about setting a choice between different languages for anonymous users, and make it persistant during navigation. And how to set the language defined by a FOS User. Use JMSI18nRoutingBundle Usage JMSI18nRoutingBundle is a good bundle for translation. It can generate dictionaries from Controllers and from routing. Go to the JMSI18nRoutingBundle website for more…

Sonata – add CKEditor in admin textareas

CKEditor is one of the best wysiwyg. It is possible to use CKEditor with sonataFormatterBundle, but there is an easier way to add CKEditor in Sonata admin textareas. Add the file: Acme/AdminBundle/Resources/views/CRUD/edit.html.twig {% extends ‘SonataAdminBundle:CRUD:base_edit.html.twig’ %} {% block javascripts %} {{ parent() }} <script src=”//cdn.ckeditor.com/4.5.0/standard/ckeditor.js”></script> <script type=”text/javascript”> $(function() { $(‘textarea.ckeditor’).ckeditor(); }); </script> {% endblock %}…