Symphony basics

Symfony basics

Creating your own commands : http://symfony.com/doc/current/components/console/introduction.html

commands http://symfony.com/doc/master/bundles/SensioGeneratorBundle/index.html

Homepage web/ of public Configuratie : config.php

Op symtest http://localhost:8888/symtest/web/app_dev.php/real

Overzicht routings php app/console debug:router

Clearen van de cache php app/console cache:clear --env=prod

php bin/console cache:clear --env=dev

Creƫren van een nieuwe bundle php app/console generate:bundle --namespace=Acme/TestBundle

Voor symfony3 : php bin/console generate:bundle --namespace=Outsmartit/myInvoiceBundle --no-interaction

Aanmaken van nieuwe entity php app/console doctrine:generate:entity

Aanmaken/updaten van tabel php app/console doctrine:schema:update --force

Aanmaken van setters/getters php app/console doctrine:generate:entities AppBundle/Entity/Product Kan ook enkel voor een bundel : bvb Outsmartit\RealestateBundle

File structure

App : Configuratie .yml files

Src : PHP files

Web : `css en image files

Vendor : 3rd party libraries

Bundles