Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

ITB2015 - ColdBox 4 MVC Modular Architecture

474 views

Published on

In this session we will introduce you to the modular architecture concepts behind ColdBox MVC and how you can build sustainable and flexible web applications via modularity.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

ITB2015 - ColdBox 4 MVC Modular Architecture

  1. 1. ColdBox 4 Modularity Modules are your friend
  2. 2. ColdBox 4 and Modules ● What is a package? ○ box.json ● What is a module? ○ box.json ○ ModuleConfig.cfc
  3. 3. ColdBox Module Interactions ● preModuleLoad() ● postModuleLoad() ● preModuleUnload() ● postModuleUnload()
  4. 4. Module conventions ● ModuleConfig.cfc ■ onLoad() ■ onUnLoad() ○ models/ ○ handlers/ ○ views/ ○ CF Mapping
  5. 5. Environment overrides ● Follows envs defined in /config/ColdBox.cfc ● Called automatically for you
  6. 6. Module Routing SES entry point this.entryPoint = "/mymodule"; Module Routes routes = [ {pattern="/", handler="blog", action="showPosts"}, {pattern="/:year-numeric/:month-numeric?", handler="blog", action="showPosts"} {pattern="/comment/:action", handler="comments"} ]
  7. 7. Module Settings getModuleSettings( ‘moduleName’ ) Returns the structure of module settings by the module name. getModuleConfig( ‘moduleName’ ) Returns the module's configuration structure
  8. 8. Module Dependencies ModuleConfig.cfc this.dependencies = [ "javaloader" ];
  9. 9. Module Inception
  10. 10. Down with Plugins! ● Storages ● MessageBox ● AntiSamy ● MailServies ● Validation ● ColdBox Debugger ● JavaLoader ● i18n ● ORM ● Commons ● ioc ● Feeds ● Soap ● Security
  11. 11. CommandBox Tooling ● forgebox search ● forgebox show ● install ● update ● outdated
  12. 12. Reading http://coldbox.ortusbooks.com/ Buy our books at the table!

×