Don't Code, Bake. An introduction to CakePHP ~PHP Hampshire Oct 2014

download Don't Code, Bake. An introduction to CakePHP ~PHP Hampshire Oct 2014

If you can't read please download the document

description

An introduction to CakePHP, a RAD MVC PHP framework for doing more with less.

Transcript of Don't Code, Bake. An introduction to CakePHP ~PHP Hampshire Oct 2014

  • 1. Don't code, bake.An introduction to CakePHP

2. Welcome!#TeamRichard 3. IntroductionPHP Developerat UK Web Mediain Weyhillhttp://www.ukwm.co.ukCyberstalk me!https://twitter.com/YellDavidhttps://github.com/davidyellhttp://careers.stackoverflow.com/davidyellhttp://uk.linkedin.com/in/davidyell#cakephp on Freenode IRC 4. CakePHP eh?Framework2005!Docs 5. Why is Cake good?Convention over configurationLess of this More of this 6. What is CakePHP?CakePHP makes building web applications simpler, faster and require less code.RADRapid ApplicationDevelopmentMVCModel View Controller 7. Why should I use it?CakePHP makes building web applications simpler, faster and require less code.Do work.Make people happy.???Profit! 8. Bake for 5 minutes 9. ModelThe knower of things Eats lots of cake and loves being fat Loves to play with the Datasource Serves up tasty data Varied behaviour2.xapp/Model/Post.php3.xsrc/Model/Table/PostsTable.phpsrc/Model/Entity/Post.php 10. BehaviorsShare the love Refactor shared modelmethods Reusable code Complex data operations Callbacks Dynamic attachmentModelsSharedLogicBehavior 11. ControllerThe brain Dad for the day Bosses the Model Herds the View Looks after the request CallbacksRequestRoutingControllerModelView 12. ComponentsShare the love Refactor shared controllermethods Reusable code Callbacks Dynamic attachmentControllersSharedLogicComponent 13. ViewsThe pretty bit Response Works with the Controller Shiny veneerDataLayoutTemplateView2.xapp/View//index.ctp3.xsrc/Template//index.ctp 14. HelpersShare the love Give views some brains Wrap up complexfunctionality ReusableFormHtmlNumber ViewPaginatorTextTime 15. An extra slice of views Build complex views Reusable markup Dynamic shared contentElementsBBlloocckkssView CellsView3.x 16. Freebies!Behaviors Containable Translate TreeComponents Pagination Sessions Authentication Security Request handling CookiesHelpers Cache Form Html Number Paginator RSS Session Text TimeUtilities Caching Email File & Folder Hash HttpSocket Inflector Internationalisationand localisation Logging CakeNumber Router Security String CakeTime Xml3.xBehaviors Timestamp CounterCacheComponents Flash Component CSRF ComponentHelpers URL Helper Flash Helper 17. Plugins Applications in applications Can wrap anything Distributable Self contained Single responsibilityfunctionality 18. The journey from 2.x to 3.x5.4ORM16x Improvement in routingSimpler configuration External libraries 19. So which version should I use?2.x Running in production Want to use existing plugins Prefer stable and secure3.x Running locally or internally Happy to migrate plugins Prefer newer features Learning from scratch or for fun 20. The bookCakeBot: Book is http://book.cakephp.org the answer to life, the universe and all your bun making needs. 21. Convinced? 22. Blog tutorial2.x 2.0 Book Tutorials & Examples Blog Tutorialhttp://book.cakephp.org/2.0/en/tutorials-and-examples/blog/blog.html3.x 3.0 Book Quick Start Guide Blog Tutorialhttp://book.cakephp.org/3.0/en/quickstart.html#blog-tutorial 23. Ecosystem Cakephp.orghttps://github.com/cakephp Book - book.cakephp.org Plugins plugins.cakephp.orgFriends of Cake www.friendsofcake.comCheck the core teams repos for more stuff 24. Further readinghttps://www.packtpub.com/all/?search=cakephp http://josediazgonzalez.com/cakephp-book/ 25. Thanks!Questions?Feedback?https://joind.in/12118 26. The deadly live demo