Your SlideShare is downloading. ×
0
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Fork 4 Developers
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Fork 4 Developers

1,256

Published on

Over de code, structuur en API's van Fork CMS. Vooral gericht naar developers.

Over de code, structuur en API's van Fork CMS. Vooral gericht naar developers.

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,256
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
30
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Fork CMS Developers!
  • 2. hashtag: #forkmeetupwifi: VergaderNet, wachtwoord: ventilatie
  • 3. I’m Dieter @dieterve
  • 4. This is Davy@bauffman
  • 5. In depth
  • 6. Content‣ Applications‣ Backend‣ Frontend‣ API‣ Modules
  • 7. Content‣ Applications‣ Backend‣ Frontend‣ API‣ Modules
  • 8. Content‣ Applications‣ Backend‣ Frontend‣ API‣ Modules
  • 9. Content‣ Applications‣ Backend‣ Frontend‣ API‣ Modules
  • 10. Content‣ Applications‣ Backend‣ Frontend‣ API‣ Modules
  • 11. applications - backend - frontend - api - modulesFrontend Backend API Library
  • 12. applications - backend - frontend - api - modulesApplications‣ 1 for each purpose‣ Clean separation between apps‣ Possible overlap (causing overhead)
  • 13. applications - backend - frontend - api - modulesStructure‣ Core‣ Modules (some required)‣ Based on MVC‣ Limited template logic
  • 14. applications - backend - frontend - api - modulesCore‣ Routing‣ Templates‣ Authentication‣ Forms‣ ...
  • 15. applications - backend - frontend - api - modulesModules actions ajax cronjobs (backend only) engine installer (backend only) js layout templates widgets widgets
  • 16. applications - backend - frontend - api - modulesLibrary‣ Global configuration‣ External classes ‣ Google analytics ‣ Facebook ‣ Akismet‣ Spoon Library
  • 17. applications - backend - frontend - api - modulesSpoon Library‣ PHP5 library‣ Basic components‣ UTF-8 support‣ Unit tested‣ Open source (github)
  • 18. applications - backend - frontend - api - modulesError handling‣ SPOON_DEBUG true / false‣ Exceptions‣ PHP errors / warnings / ...
  • 19. applications - backend - frontend - api - modules
  • 20. applications - backend - frontend - api - modulesBackend‣ Content management‣ Authentication ‣ Only logged in users‣ Module driven ‣ Semi clean url’s (GET)
  • 21. applications - backend - frontend - api - modulesCore‣ Router ‣ Loads module based on URL ‣ http://<site>/private/en/module/ controller?param=value‣ Authentication ‣ Action level
  • 22. applications - backend - frontend - api - modulesCore‣ Basic layout ‣ Datagrids ‣ Forms ‣ Tabs ‣ Filters
  • 23. applications - backend - frontend - api - modules
  • 24. applications - backend - frontend - api - modules
  • 25. applications - backend - frontend - api - modulesBase classes‣ Base for actions‣ Less monkey jobs ‣ Success/error reporting ‣ Autoloading js/css ‣ Choosing template ‣ ...
  • 26. applications - backend - frontend - api - modulesReporting
  • 27. applications - backend - frontend - api - modulesAutoloading JS / CSS‣ <module>.js‣ <action>.js‣ <action>.css
  • 28. applications - backend - frontend - api - modulesSpecific base classes‣ index / add / edit‣ BackendBaseActionAdd ‣ create and display form‣ BackendBaseActionIndex ‣ create and display datagrid‣ All you have to do is add data
  • 29. applications - backend - frontend - api - modulesBackend navigation‣ Per module (by installer)‣ Flexible‣ Not limited to module context ‣ settings
  • 30. applications - backend - frontend - api - modulesAutoloader‣ BackendAnalyticsContent‣ BackendAnalyticsModel‣ BackendAnalyticsHelper
  • 31. applications - backend - frontend - api - modulesDirectory structure actions ajax cronjobs engine installer js layout templates widgets widgets
  • 32. applications - backend - frontend - api - modulesAction‣ Controller‣ Interface for the user‣ Index / add / edit / delete / ...‣ Extends from base class(es)‣ Navigation links to action
  • 33. applications - backend - frontend - api - modulesLayout / template‣ View‣ Action template‣ <action>.tpl‣ SpoonTemplate syntax
  • 34. applications - backend - frontend - api - modulesEngine‣ Model ‣ Class with static methods ‣ Handles database interaction‣ Helper ‣ Can be anything
  • 35. applications - backend - frontend - api - modulesAjax‣ Controller‣ Own base class‣ Authentication‣ Json output
  • 36. applications - backend - frontend - api - modulesCronjob‣ Controller‣ Own base class‣ No authentication‣ Collisions‣ Command line or HTTP
  • 37. applications - backend - frontend - api - modulesInstaller‣ Set rights‣ Set navigation structure‣ Set extra’s (create pages, ...)‣ install.sql‣ locale.xml
  • 38. applications - backend - frontend - api - modulesFrontend‣ The website‣ Visitors ‣ Guests ‣ Registered visitors‣ Page driven (http://<site>/page)
  • 39. applications - backend - frontend - api - modulesFrontend‣ 2 types of controllers ‣ Action: 1 per page (route dependant) ‣ Widget: * per page‣ Defined in pages module‣ All about pages
  • 40. applications - backend - frontend - api - modulesPages‣ 1 page = 1 template‣ 1 template = * blocks‣ Block ‣ Action ‣ Widget
  • 41. 1Blocks indetemplate... 2 3 4 5 6 7
  • 42. applications - backend - frontend - api - modulesPages
  • 43. applications - backend - frontend - api - modulesCore‣ Routing ‣ action to execute ‣ widget(s) to execute ‣ based on the current page
  • 44. applications - backend - frontend - api - modulesMinify‣ SPOON_DEBUG = false‣ minified.css‣ Custom js / css = auto
  • 45. applications - backend - frontend - api - modulesAPI‣ XML‣ JSON‣ Authentication possible‣ /api/1.0/? method=<module>.<function>&param=value..
  • 46. applications - backend - frontend - api - modulesAPI‣ BackendBlogAPI‣ Public functions‣ Parameter validation
  • 47. applications - backend - frontend - api - modulesSearch‣ Index pool‣ Fields defined per module‣ Callback per module
  • 48. applications - backend - frontend - api - modulesAdd to index
  • 49. applications - backend - frontend - api - modulesCallback
  • 50. applications - backend - frontend - api - modulesTags‣ Create textbox‣ Save after validation
  • 51. applications - backend - frontend - api - modulesTags
  • 52. applications - backend - frontend - api - modulesTags
  • 53. applications - backend - frontend - api - modulesMeta‣ Again 1 pool‣ SEO‣ Almost every module needs it
  • 54. applications - backend - frontend - api - modules
  • 55. applications - backend - frontend - api - modules
  • 56. applications - backend - frontend - api - modulesMeta‣ Create form‣ Validate‣ Save
  • 57. applications - backend - frontend - api - modulesLocale‣ Multi language‣ Maintainable by backend user‣ Split between applications
  • 58. applications - backend - frontend - api - modulesLocale - backend‣ Split between modules‣ Fallback to core
  • 59. applications - backend - frontend - api - modulesLocale - frontend‣ 1 pool
  • 60. Questions?
  • 61. www.fork-cms.com info@fork-cms.comtwitter.com/fork_cms

×