Cake php concept to deployment

404 views
357 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
404
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

















































  • Cake php concept to deployment

    1. 1. Who is this bloke? • Graham Weldon • PHP: 9 years • CakePHP Core Developer • http://grahamweldon.com • Cake Development Corporation • http://cakedc.com • @predominant
    2. 2. • Workshops • Conference • Learn from the core • Presentations from core developers developers • Get one on one support • Community presenters for existing code • Lightning talks • Comfortable, easy to learn environment • Prizes • Cheaper than ever! • Networking
    3. 3. Concept • Software Requirements • Impact Analysis • Documentation
    4. 4. Concept • Projects • Sections • Requirements • Dependencies • Tests
    5. 5. Concept • Projects • Sections • Requirements • Dependencies • Tests
    6. 6. Defining Standards • Models • Views • Controllers • Libraries • Database
    7. 7. Standards: Models • Class name: Singular • Project • SoftwareProject • Filename: Singular (lowercase, underscored) • project.php • software_project.php • Path: /app/models/
    8. 8. Standards: Views • File name: Match Controller action name • Path: /app/views/<controller>/<action>.ctp
    9. 9. Standards: Controllers • Class Name: Plural • ProjectsController • File Name: Plural (lowercase, underscored) • projects_controller.php • Path: /app/controllers/
    10. 10. Standards: Database • Tables: Plural (lowercase, underscored) • projects • software_projects • Foreign Keys: Singlular (lowercase, id suffix) • project_id • software_project_id
    11. 11. Designing the Database
    12. 12. User
    13. 13. User Project
    14. 14. User Project Project
    15. 15. User Project Project Section Section
    16. 16. User Project Project Section Section Section Section Section Section
    17. 17. User Project Project Section Section Section Section Section Section R
    18. 18. User Project Project Section Section Section Section Section Section R R R
    19. 19. User Project Project Section Section Section Section Section Section R R R R R
    20. 20. User Project Project Section Section Section Section Section Section R R R R R
    21. 21. User Project Project Section Section Section Section Section Section R R R R R
    22. 22. Baking
    23. 23. Models Controllers Views
    24. 24. Models Representation of data, and provision of operations to be performed on data Controllers Views
    25. 25. Models Representation of data, and provision of operations to be performed on data Controllers Application flow control. Pass model data to views, prevent unauthorised access. Views
    26. 26. Models Representation of data, and provision of operations to be performed on data Controllers Application flow control. Pass model data to views, prevent unauthorised access. Views Output from application. XHTML, JSON, XML, etc.
    27. 27. Models Controllers Views
    28. 28. Models $ cake bake model user $ cake bake model project $ cake bake model section $ cake bake model requirement Controllers Views
    29. 29. Models $ cake bake model user $ cake bake model project $ cake bake model section $ cake bake model requirement Controllers $ cake bake controller users $ cake bake controller projects $ cake bake controller sections $ cake bake controller requirements Views
    30. 30. Models $ cake bake model user $ cake bake model project $ cake bake model section $ cake bake model requirement Controllers $ cake bake controller users $ cake bake controller projects $ cake bake controller sections $ cake bake controller requirements Views $ cake bake view all
    31. 31. Models $ cake bake model user $ cake bake model project $ cake bake model section $ cake bake model requirement Controllers $ cake bake controller users $ cake bake controller projects $ cake bake controller sections $ cake bake controller requirements Views $ cake bake view all There are shortcuts for most things
    32. 32. Models $ cake bake model user $ cake bake model project $ cake bake model section $ cake bake model requirement Controllers $ cake bake controller users $ cake bake controller projects $ cake bake controller sections $ cake bake controller requirements Views $ cake bake view all There are shortcuts for Console help: most things $ cake bake help
    33. 33. Models $ cake bake model user $ cake bake model project $ cake bake model section $ cake bake model requirement Controllers $ cake bake controller users $ cake bake controller projects $ cake bake controller sections $ cake bake controller requirements Views $ cake bake view all There are shortcuts for Console help: most things $ cake bake help
    34. 34. What was generated?
    35. 35. Associations
    36. 36. Has One 1 .. 1
    37. 37. Has Many
    38. 38. Has Many 1 .. n
    39. 39. Belongs To 1 .. n
    40. 40. Has And Belongs To Many
    41. 41. Has And Belongs To Many n .. n
    42. 42. Has And Belongs To Many n .. n HABTM
    43. 43. Authentication
    44. 44. Alternate Content RSS, JSON, XML
    45. 45. Training
    46. 46. Training • Beginners • Cake Development Corporation • Experienced users • Employs most of the • Code Review CakePHP Core dev’s • Project Management • Largest supporter of the CakePHP Framework
    47. 47. Thanks!

    ×