Introduction to Symfony2: Getting Ready for D8 - Thursday

Thursday, November 6 2014
Sold out

This comprehensive introduction to Symfony2 will help experienced and new PHP developers understand the power and flexibility of Drupal 8's new development framework. With hands on exercises throughout the day-long training, participants will learn basic Symfony2 concepts, build simple applications, and explore how Symfony2 is used in Drupal 8.

Topic areas are as follows:

Prologue

  • Object Oriented Recap
  • Framework or CMS?
  • Zend vs. Symfony2

Framework and Tools

  • Standard Edition Install
  • Architecture
  • HTTP requests
  • Environment
  • Coding standards

Debugging

  • Debug toolbar
  • Logs
  • Profiler
  • Exception traces

Configuring the application

  • Configuration
  • Supported formats: XML, YAML and PHP
  • Global config
  • URIs global config
  • Overriding at the bundle level

Generating pages

  • Templates
  • Twig template engine syntax
  • Twig and PHP
  • Template inheritance
  • Template and Action inclusion
  • Defining and including slots
  • Generating URIs and view helpers

Actions and the end user request

  • Controller classes and action methods
  • Mapping controllers using routing
  • Raw response or template response
  • Reading data from the user’s request
  • Reading and writing session data
  • Cookies
  • Multiple config files via inclusion, overrides
  • Triggering a 404 error page
  • Redirecting

Interacting with a relational database

  • Introduction to PDO
  • Getting a MySQL connection
  • Executing a SQL query
  • Securing SQL queries
  • Factoring business logic into model classes

Interacting with forms

  • The form framework
  • Basic forms
  • Validation rules
  • Prototyping form rendering with Twig
  • Retrieving validated input

Review and Recap

Symfony2 and Drupal 8

  • Components
  • Community

Symfony2 Resources

WHO WILL GAIN THE MOST FROM THIS COURSE?

Drupal developers who have not begun to learn Symfony2 or prepare for changes in Drupal 8 development. Experienced PHP developers and developers who are new to PHP or moving from .NET or other platforms.

PREREQUISITES FOR THIS COURSE

Working knowledge of PHP or other coding systems. Drupal module development experience will be helpful. Local dev environment and text editor. Netbeans or other equivalent IDE helpful.