Who is this bloke?
•   Graham Weldon
•   PHP: 9 years
•   CakePHP Core Developer
•   http://grahamweldon.com
•   Cake Deve...
•   Workshops                •   Conference

•   Learn from the core      •   Presentations from core
    developers      ...
Concept

• Software Requirements
• Impact Analysis
• Documentation
Concept

• Projects
• Sections
• Requirements
• Dependencies
• Tests
Concept

• Projects
• Sections
• Requirements
• Dependencies
• Tests
Defining Standards

• Models
• Views
• Controllers
• Libraries
• Database
Standards: Models
•   Class name: Singular

    •   Project

    •   SoftwareProject

•   Filename: Singular (lowercase, u...
Standards: Views


• File name: Match Controller action name
• Path: /app/views/<controller>/<action>.ctp
Standards: Controllers

• Class Name: Plural
 • ProjectsController
• File Name: Plural (lowercase, underscored)
 • project...
Standards: Database
• Tables: Plural (lowercase, underscored)
 • projects
 • software_projects
• Foreign Keys: Singlular (...
Designing the Database
User
User   Project
User   Project   Project
User   Project     Project


         Section     Section
User   Project     Project


         Section     Section

         Section     Section

         Section     Section
User   Project     Project


         Section     Section

         Section     Section

         Section     Section


  ...
User       Project         Project


             Section         Section

             Section         Section

         ...
User       Project               Project


               Section             Section

               Section             ...
User       Project               Project


               Section             Section

               Section             ...
User       Project               Project


               Section             Section

               Section             ...
Baking
Models




Controllers




 Views
Models
Representation of data, and
provision of operations to be
performed on data


Controllers




 Views
Models
Representation of data, and
provision of operations to be
performed on data


Controllers
Application flow control. ...
Models
Representation of data, and
provision of operations to be
performed on data


Controllers
Application flow control. ...
Models




Controllers




 Views
Models
$   cake    bake   model   user
$   cake    bake   model   project
$   cake    bake   model   section
$   cake    b...
Models
$   cake    bake   model   user
$   cake    bake   model   project
$   cake    bake   model   section
$   cake    b...
Models
$   cake    bake   model   user
$   cake    bake   model   project
$   cake    bake   model   section
$   cake    b...
Models
$    cake   bake   model      user
$    cake   bake   model      project
$    cake   bake   model      section
$   ...
Models
$    cake   bake   model      user
$    cake   bake   model      project
$    cake   bake   model      section
$   ...
Models
$    cake   bake   model      user
$    cake   bake   model      project
$    cake   bake   model      section
$   ...
What was generated?
Associations
Has One

  1 .. 1
Has Many
Has Many

  1 .. n
Belongs To

   1 .. n
Has And Belongs To Many
Has And Belongs To Many


         n .. n
Has And Belongs To Many


         n .. n




     HABTM
Authentication
Alternate Content




    RSS, JSON, XML
Training
Training
•   Beginners            •   Cake Development
                             Corporation
•   Experienced users
    ...
Thanks!
Cake php 1 3 concept to deployment presentation
Cake php 1 3 concept to deployment presentation
Upcoming SlideShare
Loading in...5
×

Cake php 1 3 concept to deployment presentation

521

Published on

Cake php 1 3 concept to deployment presentation

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
521
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
26
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

















































  • Cake php 1 3 concept to deployment presentation

    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!
    1. Gostou de algum slide específico?

      Recortar slides é uma maneira fácil de colecionar informações para acessar mais tarde.

    ×