Onsite training

Bring our trainers team onsite to train your employees.

Learn more


Symfony2

Getting Started with Symfony2

Build dynamic and evolutive web applications with the Symfony 2 PHP framework.


This training is the best starting point to get ready with new Symfony 2 framework usages and tools. It’s also a good mean to achieve a development methodology based on best practices and expertise.

Coming sessions


- Date Venue Price  
English Mar. 5 - Mar. 6 Montreal 1290.00 € Register
  • This session will take place from March 5, 2012 at 9:00 AM to March 6, 2012 at 5:00 PM (America/Montreal) and it will be hosted by Hugo Hamon.

German Mar. 5 - Mar. 6 Köln 1290.00 € Register
  • This session will take place from March 5, 2012 at 9:00 AM to March 6, 2012 at 5:30 PM (Europe/Berlin) and it will be hosted by Andreas Hucks.

French Mar. 20 - Mar. 21 Paris 1290.00 € Register
  • This session will take place from March 20, 2012 at 9:00 AM to March 21, 2012 at 5:30 PM (Europe/Paris) and it will be hosted by Hugo Hamon.

English Mar. 27 - Mar. 28 Paris 1290.00 € Register
  • This session will take place from March 27, 2012 at 9:00 AM to March 28, 2012 at 5:30 PM (Europe/Paris) and it will be hosted by Hugo Hamon.

English Apr. 3 - Apr. 4 London 1290.00 € Register
  • This session will take place from April 3, 2012 at 9:00 AM to April 4, 2012 at 5:30 PM (Europe/London) and it will be hosted by Hugo Hamon.

German Apr. 19 - Apr. 20 Munich 1290.00 € Closed
  • This session will take place from April 19, 2012 at 9:00 AM to April 20, 2012 at 5:30 PM (Europe/Berlin) and it will be hosted by Andreas Hucks.

French Apr. 23 - Apr. 24 Paris 1290.00 € Register
  • This session will take place from April 23, 2012 at 9:00 AM to April 24, 2012 at 5:30 PM (Europe/Paris) and it will be hosted by Hugo Hamon.

German Apr. 23 - Apr. 24 Hamburg 1290.00 € Register
  • This session will take place from April 23, 2012 at 9:00 AM to April 24, 2012 at 5:30 PM (Europe/Berlin) and it will be hosted by Andreas Hucks.

French May. 21 - May. 22 Paris 1290.00 € Register
  • This session will take place from May 21, 2012 at 9:00 AM to May 22, 2012 at 5:30 PM (Europe/Paris) and it will be hosted by Hugo Hamon.

German May. 21 - May. 22 Köln 1290.00 € Register
  • This session will take place from May 21, 2012 at 9:00 AM to May 22, 2012 at 5:30 PM (Europe/Berlin) and it will be hosted by Andreas Hucks.

French Jun. 11 - Jun. 12 Paris 1290.00 € Register
  • This session will take place from June 11, 2012 at 9:00 AM to June 12, 2012 at 5:30 PM (Europe/Paris) and it will be hosted by Hugo Hamon.

German Jun. 25 - Jun. 26 Munich 1290.00 € Register
  • This session will take place from June 25, 2012 at 9:00 AM to June 26, 2012 at 5:30 PM (Europe/Berlin) and it will be hosted by Andreas Hucks.

English Jun. 26 - Jun. 27 Paris 1290.00 € Register
  • This session will take place from June 26, 2012 at 9:00 AM to June 27, 2012 at 5:30 PM (Europe/Paris) and it will be hosted by Hugo Hamon.

English Jul. 2 - Jul. 3 London 1290.00 € Register
  • This session will take place from July 2, 2012 at 9:00 AM to July 3, 2012 at 5:30 PM (Europe/London) and it will be hosted by Hugo Hamon.

French Jul. 17 - Jul. 18 Paris 1290.00 € Register
  • This session will take place from July 17, 2012 at 9:00 AM to July 18, 2012 at 5:30 PM (Europe/Paris) and it will be hosted by Hugo Hamon.


Goals


Take the Symfony2 PHP framework into your hands and discover Symfony2 basics and features like MVC implementation, forms processing and database handling...


Program

Download the program as PDF

Object Oriented Programming

  • Classes vs objects
  • Constructor / destructor
  • Properties and methods
  • Inheritance
  • Visibility
  • Exceptions
  • Namespaces

Exploring Symfony2

  • General introduction to the framework and its integrated tools
  • Sandbox installation
  • Symfony2 project architecture (application, bundles, libraries)
  • Processing an HTTP request with Symfony2
  • Understanding environment principle
  • Coding conventions

Debugging the code

  • The web debug toolbar
  • Recorded logs
  • Profiler
  • Exception traces

Configuring the application

  • Configuring the application
  • Comparing supported formats: XML, YAML and PHP
  • Application global configuration
  • URIs global configuration
  • Overriding global configuration at the bundle level

Generating pages for the end user

  • Twig template engine syntax
  • Templates
  • Twig versus PHP
  • Templates inheritance
  • Templates inclusion
  • Actions inclusion
  • Defining and includings slots
  • Generating URIs thanks to view helpers

Creating actions and analyzing the end user's request

  • Defining a Controller class and its action methods
  • Mapping controllers with the routing system
  • Generating a raw response or a response based on a template
  • Reading data from the user’s request ($_GET / $_POST / $_COOKIE)
  • Reading and writing data in the user’s session
  • Reading and writing a cookie
  • Multiple configuration thanks to file inclusion and overriding
  • Triggering a 404 error page
  • Redirecting the end user to another page

Interacting with a relational database

  • Introduction to PDO (DSN, prepared statements, transactions…)
  • Getting a SQLite or MySQL connection
  • Executing a SQL query on the database
  • Securing SQL queries with a transaction and prepared statements
  • Factoring the business logic into model classes

Interacting with the end user with forms

  • Discovering the form framework
  • Creating and processing basic forms
  • Applying validation rules on your fields
  • Prototyping form rendering with Twig
  • Retrieving validated user’s input

Session details


Reference code

SF2C1

Price

Starts at 1290.00 € (ex. tax)

Audience

Developers, projects managers, technical directors

Duration

2 days (14 hours)

Training type

Workshop

Topics

MVC, Twig, cookies, session, forms, refactoring, php 5.3

Pre-requisites

Good knowledge of PHP and Object Oriented Programming


For further information

+33 140 998 205

We remain at your disposal for further information.

Contact us