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

Step into Symfony 2

Step into Symfony 2

Presented at Drupal Dundee User Group. April 2014.

Avatar for John Hume

John Hume

April 15, 2014
Tweet

More Decks by John Hume

Other Decks in Programming

Transcript

  1. Drupal Dundee Step into Symfony2 • What is Symfony •

    HTTP Requests • Demo • Drupal 8 and Symfony
  2. “Symfony2 is a reusable set of standalone, decoupled, and cohesive

    PHP components that solve common web development problems” “ based on these components, Symfony2 is also a full- stack web framework” - Fabien Potencier What is Symfony2?
  3. Symfony2 – Providing a Response The basic goal of every

    web application is always to interpret a request and create the appropriate response based on your application logic.
  4. Some Symfony Concepts • Environment – set of configuration that

    the application runs within. Symfony ships with ‘dev’ and ‘prod’. • Bundle – similar to a plugin/module. Implements a specific feature. E.g. BlogBundle, ForumBundle. • Controller - A PHP function or method that handles incoming requests and returns responses (often HTML code). • View – templates the data from the controller.
  5. • Yet Another Markup Language • Used for creating simple

    hierarchical documents. • Less verbose than XML • YAML is most prominent configuration format in Symfony2 A Quick Note on YAML
  6. Symfony Directory Structure • app/: the application configuration; • src/:

    the project's PHP code; • vendor/: the third-party dependencies; • web/: the web root directory.