Más contenido relacionado Más de Stefan Koopmanschap (20) symfony 1.4 workshop3. Today
• Frameworks
• The symfony framework
• Developing with symfony
• Our project for today
zondag 10 oktober 2010
4. Introduction
• Stefan Koopmanschap
• Software Engineer
• Consultant
• Trainer
• Community Manager
• PHPBenelux secretary
zondag 10 oktober 2010
8. Application Application Application
Framework
zondag 10 oktober 2010
10. symfony
• full stack
• highly configurable
• minimizes boring tasks
• maximizes focus on important stuff
zondag 10 oktober 2010
11. symfony
• MVC
• ORM
zondag 10 oktober 2010
13. Developing with symfony
• symfony
• PHP and a webserver (and a database)
• command line
• IDE
zondag 10 oktober 2010
14. Our project for today
• Users
• Friends
• Updates
• API
zondag 10 oktober 2010
18. Project
Application
Module
Module
Application
Module
Module
Plugin
zondag 10 oktober 2010
20. Plugins
• reusable sets of functionality
• modules
• libraries
• anything that can be re-used
zondag 10 oktober 2010
21. Plugins
• On the symfony site:
• 1142 plugins
• 475 contributes
• Github
• Individual websites
zondag 10 oktober 2010
25. Database
• ORMs
• Propel
• Doctrine
• Custom
zondag 10 oktober 2010
29. Modules
• Heart of your application
• handle page-specific logic
• contain page-specific display logic
• call the model
zondag 10 oktober 2010
30. Modules
• Different types
• “blank” modules
• CRUD modules
• admin generator
zondag 10 oktober 2010
33. Forms
• Extensive integrated form framework
• Form generation
• Form validation
• Form processing
zondag 10 oktober 2010
37. Models
• Business logic
• calculations
• database transactions
zondag 10 oktober 2010
40. The mailer
• mail()
• opening sockets
• swiftMailer
zondag 10 oktober 2010
43. Caching
• Improve performance
• Don’t repeat “slow” data fetching
• Caching does not fix the problem!
zondag 10 oktober 2010
47. Routing
• gesichtbuch.de/users/id/1
• gesichtbuch.de/users/stefan
• gesichtbuch.de/stefan
zondag 10 oktober 2010
50. API
• Format specification
• Actions is the same
• Different output templates
zondag 10 oktober 2010