Archives de
Month: décembre 2012

knpmenubundle et Bootstrap [FR]

knpmenubundle et Bootstrap [FR]

Aujourd’hui, je vais parler de l’intégration de Bootstrap et KnpMenuBundle. Je pars du principe que vous avez déjà un template avec les ressources de Bootstrap d’inclus. L’installation et l’utilisation du bundle sont simples et bien expliquées la documentation. Afin de bien intégrer Bootstrap j’ai du chercher quelques petites sur le net que je rassemble ici. Afin que tout fonctionne correctement, les éléments du menu doivent être ajoutés comme suivant : $menu->addChild(‘Home’, array( ‘route’ => ‘route_name’, ‘routeParameters’ => array(‘slug’ => $myth->getSlug()), ‘attributes’ =>…

Lire la suite Lire la suite

Symfony2.1 + sonata-admin + sonata-user +fos-userbundle [EN]

Symfony2.1 + sonata-admin + sonata-user +fos-userbundle [EN]

Hy, everybody, today we will see how to install Symfony2.1 and the following bundles: FOSUserBundle SonataAdminBundle SonataUserBundle tl;dr: There is a GitHub repository with the project. The first step is to create the project with the following command line: composer create-project symfony/framework-standard-edition sonataadmin.fr Then we edit the composer.json file to add the bundles: « sonata-project/admin-bundle »: « dev-master », « friendsofsymfony/user-bundle »: « dev-master », « sonata-project/user-bundle »: « dev-master », « sonata-project/doctrine-orm-admin-bundle »: « dev-master » Update the AppKernel.php file to add the following bundles: new FOS\UserBundle\FOSUserBundle(), new Sonata\jQueryBundle\SonatajQueryBundle(), new Sonata\AdminBundle\SonataAdminBundle(), new Sonata\BlockBundle\SonataBlockBundle(), new Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdminBundle(),…

Lire la suite Lire la suite

Symfony2.1 + sonata-admin + sonata-user +fos-userbundle [FR]

Symfony2.1 + sonata-admin + sonata-user +fos-userbundle [FR]

Salut à vous, aujourd’hui nous allons voir comment installer Symfony2.1 et les bundles suivants: FOSUserBundle SonataAdminBundle SonataUserBundle La première étape est bien entendu la création du projet à l’aide de la commande suivante: composer create-project symfony/framework-standard-edition sonataadmin.fr Éditez le fichier composer.json pour y rajouter les bundles suivants : « sonata-project/admin-bundle »: « dev-master », « friendsofsymfony/user-bundle »: « dev-master », « sonata-project/user-bundle »: « dev-master », « sonata-project/doctrine-orm-admin-bundle »: « dev-master » Mettez à jour votre fichier AppKernel.php avec les bundles suivants : new FOS\UserBundle\FOSUserBundle(), new Sonata\jQueryBundle\SonatajQueryBundle(), new Sonata\AdminBundle\SonataAdminBundle(), new Sonata\BlockBundle\SonataBlockBundle(), new Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdminBundle(), new Knp\Bundle\MenuBundle\KnpMenuBundle(), new…

Lire la suite Lire la suite