background preloader

Symfony 2

Facebook Twitter

Geo Bounding Box Filter. A filter allowing to filter hits based on a point location using a bounding box.

Geo Bounding Box Filter

Assuming the following indexed document: Comment créer un « listener » (« écouteur » en français) d'évènement. Composants Internes (The Symfony Book) Récupérer ses entités avec Doctrine2. GitLab. Incenteev/ParameterHandler. Aide mémoire twig. 16. The QueryBuilder — Doctrine 2 ORM 2 documentation. A QueryBuilder provides an API that is designed for conditionally constructing a DQL query in several steps.

16. The QueryBuilder — Doctrine 2 ORM 2 documentation

It provides a set of classes and methods that is able to programmatically build queries, and also provides a fluent API. This means that you can change between one methodology to the other as you want, and also pick one if you prefer. 16.1. Constructing a new QueryBuilder object The same way you build a normal Query, you build a QueryBuilder object, just providing the correct method name. <? Once you have created an instance of QueryBuilder, it provides a set of useful informative functions that you can use. <? Installing Node.js via package manager · joyent/node Wiki. Note: The packages on this page are maintained and supported by their respective packagers, not the Node.js core team.

Installing Node.js via package manager · joyent/node Wiki

Please report any issues you encounter to the package maintainer. If it turns out your issue is a bug in Node.js itself, the maintainer will report the issue upstream. Adding HWIOAuthBundle to your Symfony2 project. When it comes the time to add OAuth support to your Symfony2 project, and allow your users to login using their accounts of Facebook, Google, Twitter, Linkedin, etc., it really makes sense to use some of those great third-party bundles that already solve this problem.

Adding HWIOAuthBundle to your Symfony2 project

One of these bundles is the HWIOAuthBundle. This is a great bundle that allows you very easily to add support for authenticating users via OAuth1.0a or OAuth2 in Symfony2, handling more than 20 providers. Installing and Configuring Symfony (The Symfony Book) The goal of this chapter is to get you up and running with a working application built on top of Symfony.

Installing and Configuring Symfony (The Symfony Book)

In order to simplify the process of creating new applications, Symfony provides an installer application. Extensions Twig Symfony2 (The Symfony Reference) Ivory-ordered-form/ at master · egeloen/ivory-ordered-form. Craue/CraueFormFlowBundle. New in Symfony 2.7: Translation Profiler. Internationalizing an application and assuring that all its messages are actually translated is one of the most frustrating, hassling and time-consuming tasks that developers must face.

New in Symfony 2.7: Translation Profiler

Symfony is decided to drastically simplify this process while boosting your productivity. That's why in Symfony 2.7, the web debug toolbar will show a new translation panel. This panel provides a quick overview of the status of your application translation: Translation messages are divided into three categories: defined (the messages that have already been translated), missing (the messages left to be translated) and same as fallback (messages which aren't translated but are available in the default locale configured in the application).

If you click on the toolbar panel, you'll see the new Translation profiler: This table shows the detail of the application messages, including their domain, the times each of them have been used and a preview of the translated message. Fzaninotto/Faker. Nelmio/alice. Symfony2 checklist de déploiement. DateTimePicker field type with Symfony and jQuery. Lire la version française In this third post, we’ll explain how to create a great custom field type that uses jQuery DatePicker to handle date input, and then, how to extend it to create a datetime field type.

DateTimePicker field type with Symfony and jQuery

And the best? The datepicker is localized according to the user’s locale. Les services, utilisation poussée. SecurityBundle Configuration ("security") (The Symfony Reference) The security system is one of the most powerful parts of Symfony, and can largely be controlled via its configuration.

SecurityBundle Configuration ("security") (The Symfony Reference)

Full default Configuration The following is the full default configuration for the security system. Each part will be explained in the next section. 2.5Support for restricting security firewalls to specific http methods was introduced in Symfony 2.5. Configuration de référence de la Sécurité (The Symfony Reference) Le système de sécurité est l'une des parties les plus puissantes de Symfony2, et il peut être en grande partie contrôlé via sa configuration.

Configuration de référence de la Sécurité (The Symfony Reference)

Symfony2 authentication provider: authenticate against webservice. <?

Symfony2 authentication provider: authenticate against webservice

Php namespace Acme\DemoBundle\Security\Core\Authentication\Provider; use Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface; Comment personnaliser votre formulaire de login (The Symfony CookBook) @ParamConverter. Comment écrire une Extension Twig personnalisée (The Symfony CookBook) Extending Twig - Documentation - Twig - The flexible, fast, and secure PHP template engine. Caution This section describes how to extend Twig as of Twig 1.12. If you are using an older version, read the legacy chapter instead. Twig can be extended in many ways; you can add extra tags, filters, tests, operators, global variables, and functions.

You can even extend the parser itself with node visitors. Les Tags de l'Injection de Dépendances (The Symfony Reference) SensioLabsNetworkSLN Blackfire Profiler: Fire up your PHP apps performance Connect Since 1998, SensioLabs has been promoting the Open-Source software movement by providing quality and performant web application development products, trainings, and consulting. 10. Events — Doctrine 2 ORM 2 documentation. Doctrine 2 features a lightweight event system that is part of the Common package. Doctrine uses it to dispatch system events, mainly lifecycle events. You can also use it for your own custom events. 10.1. The Event System. Indexer et rechercher avec Elasticsearch dans un projet Symfony. Read the English version. Elasticsearch FR - Google Groups. Elasticsearch : recherche avancée et objets imbriqués (nested) Read the English version Dans un système de données non relationnel, ce qui peut manquer ce sont les jointures.

Configurer Elasticsearch de manière optimale. Read the English version. Intégrer Elasticsearch et Symfony2. Nous allons voir dans cet article comment nous pouvons ajouter une fonctionnalité de recherche avancée à Symfony2 en utilisant le moteur de recherche Elasticsearch. Prérequis. Configurer Elasticsearch de manière optimale. Match Query. A family of match queries that accept text/numerics/dates, analyzes it, and constructs a query out of it. For example: Note, message is the name of a field, you can substitute the name of any field (including _all) instead. Types of Match Queriesedit booleanedit The default match query is of type boolean. FOQElasticaBundle by Exercise. Note: This bundle has moved toFOSElasticaBundle under the FriendsOfSymfony organization.

Association Francophone des Utilisateurs de Symfony - calendrier de l'avent 2013 - Jour 20 - Intégration d'Elasticsearch dans vos applications Symfony2. 14 Commentaires La recherche est un domaine dans lequel les SGBD traditionnels sont particulièrement mauvais : Articles sur Elasticsearch. Read the English version. Parent/Child vs Nested Object vs Document séparé - Google Groups. Bonjour à tous, Symfony, High Performance PHP Framework for Web Development. FOSElasticaBundle/ at master · FriendsOfSymfony/FOSElasticaBundle.

Symfony2 cheat sheet. Snc/SncRedisBundle. Helios-ag/FMElfinderBundle. Maximecolin/ElaoTinyMceBundle. KCFinder web file manager - SunHater Projects. Trsteel88/TrsteelCkeditorBundle. Egeloen/IvoryCKEditorBundle. M6Web/RedisBundle. Comment personnaliser le rendu de formulaire (The Symfony CookBook) Formulaires (The Symfony Book) Comment imbriquer une Collection de Formulaires (The Symfony CookBook) Formulaires (The Symfony Book) How to customize Form Rendering in a Twig Template — Symfony2 v2.0.0 documentation.