ColdBox 7 is the modern HMVC (Hierarchical Model-View-Controller) framework for ColdFusion/CFML, and three of its pillars carry most applications: WireBox for dependency injection, interceptors for event-driven cross-cutting logic, and a routing DSL for clean RESTful APIs. Dependency injection is as simple as property name="userService" inject="UserService"; in a handler or model — WireBox constructs and wires the object for you, no XML. Interceptors let you tap ColdBox's lifecycle (e.g., preProcess, announced at the start of every request) to run logic like API security or logging across many events, registered in config/ColdBox.cfc. And REST routing is a one-liner: resources("photos") in config/Router.cfc auto-generates the full set of RESTful routes mapping HTTP verbs to handler actions (index, create, show, update, delete), or you build routes explicitly with route("/api/user/:id").withAction({...}).toHandler("api.user"). ColdBox 7 (released 2023) dropped Adobe 2016, added Adobe 2023 and Lucee 6 support, and delivered major WireBox performance gains (signature caching cited at 585% faster object wiring). This quickstart walks DI, interceptors, and REST routing with working code.
Read More
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)