-
Notifications
You must be signed in to change notification settings - Fork 2
Description
There were a few changes that we made between the end of episode 1 and the beginning of episode 2. They're minor, but they cause people issues.
If you're coding along with the screencast, you have 2 options:
- When starting episode 2, use the
start
directory from the episode 2 download as your new starting code.
OR
- Follow these instructions to download new files before starting episode2. The changes are very minor (minor routing changes and CSS changes), but affect several files:
CSS/JS Changes
A) Replace your base.html.twig
with https://raw.github.com/knpuniversity/symfony2-ep2/master/start/app/Resources/views/base.html.twig
B) Replace your src/Yoda/EventBundle/Resources/views/layout.html.twig
with https://github.com/knpuniversity/symfony2-ep2/blob/master/start/src/Yoda/EventBundle/Resources/views/layout.html.twig
C) Replace your src/Yoda/EventBundle/Resources/public/css/main.css
with https://github.com/knpuniversity/symfony2-ep2/blob/master/start/src/Yoda/EventBundle/Resources/public/css/main.css
Routing Changes
A) Replace your src/Yoda/EventBundle/Resources/config/routing.yml
with https://github.com/knpuniversity/symfony2-ep2/blob/master/start/src/Yoda/EventBundle/Resources/config/routing.yml
B) Replace your src/Yoda/EventBundle/Resources/config/routing/event.yml
with https://github.com/knpuniversity/symfony2-ep2/blob/master/start/src/Yoda/EventBundle/Resources/config/routing/event.yml
C) Replace your src/Yoda/EventBundle/Controller/EventController.php
with https://github.com/knpuniversity/symfony2-ep2/blob/master/start/src/Yoda/EventBundle/Controller/EventController.php
Other
A) Remove the following lines from src/Yoda/EventBundle/Resources/views/Event/index.html.twig
- these were just put there for testing and playing with items, but we don't need them::
{{ app.session.get('some_session_key') }}
{{ app.request.host }}
Activity