Symphony Framework

Symphony2 Framework

Course Duration: 45 hours

Symphony is a PHP web application framework for MVC applications. Symphony is free software and released under the MIT license. The symphony-project.com website launched on October 18, 2005. Symphony should not be confused with Symphony CMS.

Prologue

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

Framework & Tools

  • Standard Edition Install
  • Architecture
  • HTTP Requests
  • Environment
  • Coding Standards

Debugging

  • Debug Toolbar
  • Logs
  • Profiler
  • Exception traces

Configuration the application

  • Configurations
  • Supported formats:XML, YAML & PHP
  • Global config
  • URIx global config
  • Overriding at the bundle level

Interacting with forms

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

Actions & 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 & Writing session data
  • Cookies
  • Multiple config files via inclusion, overriding
  • Triggering a 404 error page
  • Redirecting

Generating Pages

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

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