diff --git a/README.md b/README.md index ee7753087143890c7ad69e2b909890a29b262b87..82cdf05272e402c4db191cba20def97f82dc5620 100755 --- a/README.md +++ b/README.md @@ -17,13 +17,12 @@ D'après les notes de Mathieu, email: [ mat AT collectifs DOT net ] 1. Un nom de project CORRECT (qui a du sens): ProjetX 2. Le nom de la DB (pas 'symfony') ProjetX 3. Ouvrir LE projet (pas le parent) - > **PHPstorm: PREMIER REFLEXE** > * Settings ⇒ Language & Frameworks ⇒ PHP ⇒ Symfony ⇒ Enable APPLYYYYYYYYYYYYYYYYY -> * Si le plugin Symfony n'est pas installé ⇒ Plugins ⇒ Browse repositories ⇒ Symfony plugin + PHP annotation + PHP toolbox +> * Si le plugin Symfony n'est pas installé ⇒ Plugins ⇒ Browse repositories ⇒ Symfony plugin + PHP +annotation + PHP toolbox 4. Nettoyage - * supprimer le répertoire AppBundle * editer composer.json * editer app/config/routing.yml @@ -31,37 +30,28 @@ D'après les notes de Mathieu, email: [ mat AT collectifs DOT net ] * editer app/config/services.yml (commenter) * delete tests * supprimer app/Resources/views/default - 5. Nettoyer le template de base * app/Resources/views/base.html.twig ⇒ Propre - 6. Autoloader composer.phar * php composer.phar dump-autoload - 7. Créer la database * php bin/console doctrine:database:create - 8. PHPstorm: Settings ⇒ Command line tool support (APPLYYYYYYYY) 9. GIT: dans .gitignore ⇒ ajouter [/.idea/](file:///.idea) (exclusion) 10. Générer le bundle * php bin/console doctrine:generate:bundle - 11. Editer composer.json * ajouter: "Namespace\\" : "src/Bundle" - > PHP Fatal error: Uncaught Symfony\Component\Debug\Exception\ClassNotFoundException: > Attempted to load class "VincentBundle" from namespace "VincentBundle". > Did you forget a "use" statement for another namespace? in > C:\xampp\htdocs\Symfony\VincentClean\app\AppKernel.php:19 - 12. Autoloader composer.phar * php composer.phar dump-autoload - 13. CLEAN UP 14. tests * TESTER L'APPLI EN CHANGEANT LE TEMPLATE - 15. supprimer DefaultController 16. supprimer Resources/views/Default 17. app/config/routing.yml, définir le préfixe