- Introductions / etc
- Lightning 5 min talk about Symfony 2.1 by Sam J
- Make sure that Symfony is working and you have the default vendors installed on your laptop / environment
- Find and run app/console
- Use app/console to generate a bundle for you to work with tonight
- Think about your entity model. What would a simple blog need as a bare minimum. (posts / comments / tags / categories etc)
- Now build out the post entity (start with post, add user and others later)
- Add a repository for posts
- Input some dummy data via phpmyadmin or similar
- Create a controller that will deal with loading posts.
- Create an action to list out posts in reverse chronological order and associated twig view
- Create an action to show a single post with associated twig view
- Link between them.
- Expand entity model to include comments. Associate users and comments
- Add comment form to single post page (Use Symfony forms component)
- Process, validate and save comments
- Display comments on single post page
- Expand with other functionality (create posts... security etc etc)