Goal: Today you're going to focus on the process of building simple apps in Silex, and using objects inside of them. Be sure to make frequent Git commits and include a README when you and your partner push your projects up to your Github repositories.
Start today by working through the
greeting example app in the Web apps with SIlex lesson.
When finished with that, work on the
CD examples in the Objects in Silex lesson.
Move your car dealership site into a Silex app. Make sure your
Car class includes a constructor as well as getters, setters and private properties.
Create a section of a job posting board where a user can create one instance of a
JobOpening class by submitting a form. It should include properties for a title, description, and contact info for the person posting the job. If you're feeling fancy, make the contact info into an object with its own class declaration, just like we did in the "Objects and properties" lesson. Hint: A
Contact object would include properties like a name, email and phone number, and you would want to store it inside of the
JobOpening object you are creating.