php south coast - don't code bake, an introduction to cakephp 3
TRANSCRIPT
- 1. Don't code, bake. An introduction to CakePHP
- 2. Introduction PHP Developer at UK Web Media in Weyhill http://www.ukwm.co.uk Cyberstalk me! https://twitter.com/YellDavid https://github.com/davidyell http://careers.stackoverflow.com/davidyell http://uk.linkedin.com/in/davidyell #cakephp on Freenode IRC
- 3. CakePHP is Awesome
- 4. CakePHP is Awesome
- 5. What is CakePHP? CakePHP makes building web applications simpler, faster and require less code. RAD Rapid Application Development MVC Model View Controller
- 6. CakePHP eh? Framework Docs 2005!
- 7. Why is Cake good? Convention over configuration Less of this More of this
- 8. Do work. Make people happy. ??? Profit! Why should I use it? CakePHP makes building web applications simpler, faster and require less code.
- 9. Freebies! Behaviours Counter cache Timestamp Translate Tree Components Authentication Cookie CSRF Flash Paginator Request Handler Security Utilities Caching Email File & Folder Hash HttpClient Inflector Internationalisation and localisation Logging Number Router Security String Time Xml Helpers Flash Form Html Number Paginator Rss Session Text Time Url
- 10. Bake for 5 minutes
- 11. Model Tables and Entities Repository pattern Tables eat lots of cake and loves being fat Loves to play with Databases Tables serve up tasty entities Varied shared behaviour Example src/Model/Table/PostsTable.php src/Model/Entity/Post.php
- 12. Behaviors Share the love Refactor shared model methods Reusable code Complex data operations Callbacks Dynamic attachment Models Shared Logic Behavior
- 13. Controller The brain Dad for the day Bosses the Model Herds the View Looks after the request Callbacks Request Routing Controller Model View
- 14. Components Share the love Refactor shared controller methods Reusable code Callbacks Dynamic attachment Controllers Shared Logic Component
- 15. Views The pretty bit Response Works with the Controller Shiny veneer Data Layout Template View Example src/Template//index.ctp
- 16. Helpers Share the love Give views some brains Wrap up complex functionality Reusable ViewNumber Form Html Paginator Text Time
- 17. An extra slice of views Build complex templates Reusable and extendable Dynamic shared content Complex data Elements View Cells BlocksBlocks View
- 18. Plugins Applications in applications Can wrap anything Distributable Self contained Single responsibility functionality
- 19. What's in the box? 5.45.4 OROR MM Simpler configuration External librariesFramework components
- 20. So which version should I use? 2.x Older code base Not name spaced No Composer support Mature and stable Security patches 3.x Most up to date Plug-in ecosystem growing Prefer newer features Learning from scratch or for fun Name spaces Composer 3.1 & 3.2 road maps available Applications already in production
- 21. The book CakeBot: Book is http://book.cakephp.org the answer to life, the universe and all your bun making needs.
- 22. Convinced?
- 23. Getting started Bookmarker tutorial
- 24. Ecosystem http://cakephp.org Book http://book.cakephp.org Plugins http://plugins.cakephp.org https://github.com/cakephp Check the core teams repositories for more stuff Use Muffin https://github.com/usemuffin Friends of Cake www.friendsofcake.com Gourmet https://github.com/gourmet
- 25. Like reading? CakePHP 2.x http://josediazgonzalez.com/cakephp-book/https://www.packtpub.com/all/?search=cakephp
- 26. The deadly live demo
- 27. Thanks! Questions? Feedback? http://joind.in/13584