https://yoansydev.co/du-react-avec-symfony/
https://www.youtube.com/watch?v=jPi9HcP7fU8
https://openclassrooms.com/fr/courses/5489656-construisez-un-site-web-a-l-aide-du-framework-symfony-5/7171301-installez-symfony-5
node 14
- nvm use 14
- symfony serve -d
- symfony open:local
- npm run watch
- npm run build
- symfony console make:controller nameController
- symfony console make:entity NameEntity
- id
- fullName
- description
- image
- link
- id
- poetId
- text
- status (1, 2, 3, 4...)
run mysql -uroot -p / to access DB show databases ; use $databaseName ; show tables ; describe $tableName ; SELECT * from poets ;
sc psysh use App\Entity\Poet $em = $container->get('doctrine')->getManager(); $poet1 = new Poet; $poet1->setFullName('Miguel Hernández'); $poet1->setDescription("Miguel Hernández Gilabert (30 octobre 1910 à Orihuela, province d'Alicante - 28 mars 1942 à Alicante) est un poète et dramaturge espagnol.") ; dump($poet1)$poet $em->persist($poet1) ; $em->flush() ; dump($poet1) ;