Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 1013 Bytes

conventions.md

File metadata and controls

23 lines (17 loc) · 1013 Bytes

Conventions

The core conventions delineate the contract between ColdBox and you for file/directory locations and more. Below is a table of the core conventions:

Directory/File Conventions

  • config/Coldbox.cfc - Your application configuration object (optional)
  • config/Router.cfc - Your application URL Router (optional)
  • handlers - This holds the app's controllers
  • layouts - Your HTML layouts
  • models - This holds your app's CFCs
  • modules - This holds the CommandBox tracked modules
  • modules_app - This holds your app's modules
  • views - Your HTML views will go here

Execution Conventions

Convention Default Value Description
Default Event main.index The default event to execute when no event is specified
Default Action index() The default action to execute in an event handler controller if none is specified
Default Layout layouts/Main.cfm The default system layout to use