Getting started with



Content management in Symfony2



About David Buchmann

Twitter: @dbu

David is a senior developper at Liip SA, specializing in Symfony2. He happens to also be a certified Scrum Master and sometimes enjoys doing the scrum master or product owner role for a project.

Liip is doing custom web development with PHP in Switzerland. liip.ch/jobs

The Plan

Symfony crash intro

Symfony directories

Read on

Symfony2 Quick Tour on symfony.com

CMF Intro

The Symfony CMF project makes it easier for developers to add CMS functionality to applications built with the Symfony2 PHP framework. Key development principles for the provided set of bundles are scalability, usability, documentation and testing

CMF = Content Management Framework

Conference Tutorial

Conference Tutorial

Doctrine PHPCR-ODM

PHPCR-ODM is not ORM, nor MongoDB or CouchDB ODM

* Not yet implemented in Jackalope

Repository Content

<jcr:root>
  <cms>
    <pages>
      <home title="Hello">
        <block title="News"
          content="Today: PHPCR presentation"/>
      </home>
      <contact title="Contact"
        content="phpcr-users@groups.google.com"/>
    </pages>
  </cms>
</jcr:root>

Symfony2 Control Flow

 


Symfony2 Control Flow

CMF additions


Route and template

  1. Hardcode controller in route object
  2. Configure by 'type' parameter on route object
  3. Configure by content class
  4. Template by content class (default controller)

Questions & Answers

Play with it today!

Get the CMF sandbox on github

github.com/dbu/conference-tutorial



Challenge: Build an FAQ page!

Review

Thank you!


Contact me on IRC or Twitter @dbu

Please give feedback on https://joind.in/11297

Github projects

Resources