Fork 4 Developers
Upcoming SlideShare
Loading in...5
×
 

Fork 4 Developers

on

  • 1,585 views

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.

Statistics

Views

Total Views
1,585
Views on SlideShare
1,585
Embed Views
0

Actions

Likes
0
Downloads
28
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Fork 4 Developers Fork 4 Developers Presentation Transcript

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