![Page 1: Développement dapplication web Larchitecture 1. Problématique Comment faire une application qui soit: Facilement maintenable Évolutive Avec une gestion](https://reader035.vdocuments.pub/reader035/viewer/2022070309/551d9db4497959293b8d8fa1/html5/thumbnails/1.jpg)
1
S
Développement d’application web
L’architecture
![Page 2: Développement dapplication web Larchitecture 1. Problématique Comment faire une application qui soit: Facilement maintenable Évolutive Avec une gestion](https://reader035.vdocuments.pub/reader035/viewer/2022070309/551d9db4497959293b8d8fa1/html5/thumbnails/2.jpg)
2
Problématique
Comment faire une application qui soit: Facilement maintenable Évolutive Avec une gestion simple du contenu
![Page 3: Développement dapplication web Larchitecture 1. Problématique Comment faire une application qui soit: Facilement maintenable Évolutive Avec une gestion](https://reader035.vdocuments.pub/reader035/viewer/2022070309/551d9db4497959293b8d8fa1/html5/thumbnails/3.jpg)
3
Solution
La séparation des « problèmes » (separation of concerns)
Architecture en couches Couche présentation Couche données Couche métier
Les couches données et métier ne doivent pas dépendre de la couche présentation
![Page 4: Développement dapplication web Larchitecture 1. Problématique Comment faire une application qui soit: Facilement maintenable Évolutive Avec une gestion](https://reader035.vdocuments.pub/reader035/viewer/2022070309/551d9db4497959293b8d8fa1/html5/thumbnails/4.jpg)
4
Solution
Modèle MVC
![Page 5: Développement dapplication web Larchitecture 1. Problématique Comment faire une application qui soit: Facilement maintenable Évolutive Avec une gestion](https://reader035.vdocuments.pub/reader035/viewer/2022070309/551d9db4497959293b8d8fa1/html5/thumbnails/5.jpg)
5
Solution
Structurer soi-même l’application
Utiliser un framework Force à structurer son application Communauté:
Toute personne connaissant le framework comprendra plus vite le code de l’application
Présence d’extensions et d’aides facilitant la mise en place de certaines tâches récurrentes et rébarbatives
Coût d’apprentissage non négligeable
![Page 6: Développement dapplication web Larchitecture 1. Problématique Comment faire une application qui soit: Facilement maintenable Évolutive Avec une gestion](https://reader035.vdocuments.pub/reader035/viewer/2022070309/551d9db4497959293b8d8fa1/html5/thumbnails/6.jpg)
6
Qui ?
![Page 7: Développement dapplication web Larchitecture 1. Problématique Comment faire une application qui soit: Facilement maintenable Évolutive Avec une gestion](https://reader035.vdocuments.pub/reader035/viewer/2022070309/551d9db4497959293b8d8fa1/html5/thumbnails/7.jpg)
7
Quel ?
![Page 8: Développement dapplication web Larchitecture 1. Problématique Comment faire une application qui soit: Facilement maintenable Évolutive Avec une gestion](https://reader035.vdocuments.pub/reader035/viewer/2022070309/551d9db4497959293b8d8fa1/html5/thumbnails/8.jpg)
8
Avantages ?
Séparation des couches
Faciliter les tests
Modulaire
Utilitaires de debug et d’analyse de performances
Maintenu, communauté
…
![Page 9: Développement dapplication web Larchitecture 1. Problématique Comment faire une application qui soit: Facilement maintenable Évolutive Avec une gestion](https://reader035.vdocuments.pub/reader035/viewer/2022070309/551d9db4497959293b8d8fa1/html5/thumbnails/9.jpg)
9
Ce que nous utiliserons
Système d’exploitation: Linux
Serveur web: Apache2
Framework: Symfony2
SCM: Git
Base de données: MySQL
Obligatoire ?
![Page 10: Développement dapplication web Larchitecture 1. Problématique Comment faire une application qui soit: Facilement maintenable Évolutive Avec une gestion](https://reader035.vdocuments.pub/reader035/viewer/2022070309/551d9db4497959293b8d8fa1/html5/thumbnails/10.jpg)
10
Symfony
Composer Gestionnaire de dépendances PHP
Twig Système de template
Doctrine ORM (Object Relational Mapping)
![Page 11: Développement dapplication web Larchitecture 1. Problématique Comment faire une application qui soit: Facilement maintenable Évolutive Avec une gestion](https://reader035.vdocuments.pub/reader035/viewer/2022070309/551d9db4497959293b8d8fa1/html5/thumbnails/11.jpg)
11
Sources d’information
La documentation officielle: http://symfony.com/doc/current/index.html
Le forum officiel: http://forum.symfony-project.org/
![Page 12: Développement dapplication web Larchitecture 1. Problématique Comment faire une application qui soit: Facilement maintenable Évolutive Avec une gestion](https://reader035.vdocuments.pub/reader035/viewer/2022070309/551d9db4497959293b8d8fa1/html5/thumbnails/12.jpg)
12
Symfony: structure
![Page 13: Développement dapplication web Larchitecture 1. Problématique Comment faire une application qui soit: Facilement maintenable Évolutive Avec une gestion](https://reader035.vdocuments.pub/reader035/viewer/2022070309/551d9db4497959293b8d8fa1/html5/thumbnails/13.jpg)
13
Symfony: app/
![Page 14: Développement dapplication web Larchitecture 1. Problématique Comment faire une application qui soit: Facilement maintenable Évolutive Avec une gestion](https://reader035.vdocuments.pub/reader035/viewer/2022070309/551d9db4497959293b8d8fa1/html5/thumbnails/14.jpg)
14
Symfony: app/config/
![Page 15: Développement dapplication web Larchitecture 1. Problématique Comment faire une application qui soit: Facilement maintenable Évolutive Avec une gestion](https://reader035.vdocuments.pub/reader035/viewer/2022070309/551d9db4497959293b8d8fa1/html5/thumbnails/15.jpg)
15
Symfony: src/
![Page 16: Développement dapplication web Larchitecture 1. Problématique Comment faire une application qui soit: Facilement maintenable Évolutive Avec une gestion](https://reader035.vdocuments.pub/reader035/viewer/2022070309/551d9db4497959293b8d8fa1/html5/thumbnails/16.jpg)
16
Symfony: vendor/
![Page 17: Développement dapplication web Larchitecture 1. Problématique Comment faire une application qui soit: Facilement maintenable Évolutive Avec une gestion](https://reader035.vdocuments.pub/reader035/viewer/2022070309/551d9db4497959293b8d8fa1/html5/thumbnails/17.jpg)
17
Symfony: web/
![Page 18: Développement dapplication web Larchitecture 1. Problématique Comment faire une application qui soit: Facilement maintenable Évolutive Avec une gestion](https://reader035.vdocuments.pub/reader035/viewer/2022070309/551d9db4497959293b8d8fa1/html5/thumbnails/18.jpg)
18
Symfony: création d’un bundle
![Page 19: Développement dapplication web Larchitecture 1. Problématique Comment faire une application qui soit: Facilement maintenable Évolutive Avec une gestion](https://reader035.vdocuments.pub/reader035/viewer/2022070309/551d9db4497959293b8d8fa1/html5/thumbnails/19.jpg)
19
Bundle: ressources
![Page 20: Développement dapplication web Larchitecture 1. Problématique Comment faire une application qui soit: Facilement maintenable Évolutive Avec une gestion](https://reader035.vdocuments.pub/reader035/viewer/2022070309/551d9db4497959293b8d8fa1/html5/thumbnails/20.jpg)
20
Création de pages
Header
Contenu
Footer
MENU
![Page 21: Développement dapplication web Larchitecture 1. Problématique Comment faire une application qui soit: Facilement maintenable Évolutive Avec une gestion](https://reader035.vdocuments.pub/reader035/viewer/2022070309/551d9db4497959293b8d8fa1/html5/thumbnails/21.jpg)
Création de pages
21
Header
Contenu
Footer
MENU
Header
Contenu
Footer
MENU
Header
Contenu
Footer
MENU
Page 1 Page 2 Page 3
![Page 22: Développement dapplication web Larchitecture 1. Problématique Comment faire une application qui soit: Facilement maintenable Évolutive Avec une gestion](https://reader035.vdocuments.pub/reader035/viewer/2022070309/551d9db4497959293b8d8fa1/html5/thumbnails/22.jpg)
22
Création de pages
PHP:
Header
Contenu
Footer
MENU
include
include
include
![Page 23: Développement dapplication web Larchitecture 1. Problématique Comment faire une application qui soit: Facilement maintenable Évolutive Avec une gestion](https://reader035.vdocuments.pub/reader035/viewer/2022070309/551d9db4497959293b8d8fa1/html5/thumbnails/23.jpg)
23
Création de pages
header.php
![Page 24: Développement dapplication web Larchitecture 1. Problématique Comment faire une application qui soit: Facilement maintenable Évolutive Avec une gestion](https://reader035.vdocuments.pub/reader035/viewer/2022070309/551d9db4497959293b8d8fa1/html5/thumbnails/24.jpg)
24
Création de page
menu.php
![Page 25: Développement dapplication web Larchitecture 1. Problématique Comment faire une application qui soit: Facilement maintenable Évolutive Avec une gestion](https://reader035.vdocuments.pub/reader035/viewer/2022070309/551d9db4497959293b8d8fa1/html5/thumbnails/25.jpg)
25
Création de pages
footer.php
![Page 26: Développement dapplication web Larchitecture 1. Problématique Comment faire une application qui soit: Facilement maintenable Évolutive Avec une gestion](https://reader035.vdocuments.pub/reader035/viewer/2022070309/551d9db4497959293b8d8fa1/html5/thumbnails/26.jpg)
26
Création de pages
index.php
![Page 27: Développement dapplication web Larchitecture 1. Problématique Comment faire une application qui soit: Facilement maintenable Évolutive Avec une gestion](https://reader035.vdocuments.pub/reader035/viewer/2022070309/551d9db4497959293b8d8fa1/html5/thumbnails/27.jpg)
27
Création de pages
Twig
Header
Contenu
Footer
MENU
Contenuextends
base.html.twig index.html.twig
![Page 28: Développement dapplication web Larchitecture 1. Problématique Comment faire une application qui soit: Facilement maintenable Évolutive Avec une gestion](https://reader035.vdocuments.pub/reader035/viewer/2022070309/551d9db4497959293b8d8fa1/html5/thumbnails/28.jpg)
28
Création de pages
base.html.twig
![Page 29: Développement dapplication web Larchitecture 1. Problématique Comment faire une application qui soit: Facilement maintenable Évolutive Avec une gestion](https://reader035.vdocuments.pub/reader035/viewer/2022070309/551d9db4497959293b8d8fa1/html5/thumbnails/29.jpg)
29
Création de pages
base.html.twig (cont)
![Page 30: Développement dapplication web Larchitecture 1. Problématique Comment faire une application qui soit: Facilement maintenable Évolutive Avec une gestion](https://reader035.vdocuments.pub/reader035/viewer/2022070309/551d9db4497959293b8d8fa1/html5/thumbnails/30.jpg)
30
Création de pages
base.html.twig (cont)
![Page 31: Développement dapplication web Larchitecture 1. Problématique Comment faire une application qui soit: Facilement maintenable Évolutive Avec une gestion](https://reader035.vdocuments.pub/reader035/viewer/2022070309/551d9db4497959293b8d8fa1/html5/thumbnails/31.jpg)
31
Création de pages
Index.html.twig
![Page 32: Développement dapplication web Larchitecture 1. Problématique Comment faire une application qui soit: Facilement maintenable Évolutive Avec une gestion](https://reader035.vdocuments.pub/reader035/viewer/2022070309/551d9db4497959293b8d8fa1/html5/thumbnails/32.jpg)
32
Questions ?