Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Build your first Symfony2 application (ZendCon Europe 2013)

Build your first Symfony2 application (ZendCon Europe 2013)

During this tutorial, you will get started with the Symfony2 framework, and build your first web application using the framework. We\’ll cover installation, configuration, bundl es, controllers, working with the database and forms during this tutorial, and if we have some time left, we can go beyond those basic topics as well.

Stefan Koopmanschap

November 18, 2013
Tweet

More Decks by Stefan Koopmanschap

Other Decks in Technology

Transcript

  1. Build your first
    Symfony2 application

    View full-size slide

  2. wifi!
    • SSID: zendcon_europe

    • password: zendconeurope2013

    • SSID: Marriott_Conf

    • password: 09EAB9

    View full-size slide

  3. https://joind.in/9286

    View full-size slide

  4. /about
    • PHP developer since ’97/’98

    • symfony developer since ’06/’07

    • PHPBenelux/PFZ.nl/PHPAmersfoort

    • Ingewikkeld / Techademy

    View full-size slide

  5. Today
    1. Choosing your framework

    2. Creating your project

    3. Creating your first Hello World

    4. Connecting to the database

    5. Working with Twig

    6. Working with forms

    View full-size slide

  6. Choose your
    framework

    View full-size slide

  7. http://symfony.com/download

    View full-size slide

  8. php composer.phar

    create-project

    symfony/framework-standard-edition

    myProject/ 2.3.6

    View full-size slide

  9. chmod -R 777
    app/cache app/logs

    View full-size slide

  10. The src/ directory

    View full-size slide

  11. app/console
    generate:bundle

    View full-size slide

  12. app/console
    doctrine:generate:entity

    View full-size slide

  13. app/console
    doctrine:generate:crud

    View full-size slide

  14. app/console
    doctrine:generate:crud

    View full-size slide

  15. Forms are objects

    View full-size slide

  16. Today
    1. Choosing your framework

    2. Creating your project

    3. Creating your first Hello World

    4. Connecting to the database

    5. Working with Twig

    6. Working with forms

    View full-size slide

  17. https://joind.in/9286

    View full-size slide