Getting Started
With CommandBox, you can start building reactive CFML apps in seconds.
Requirements
Adobe ColdFusion 2018+ or Lucee 5+
ColdBox 6+
Installation
Install CommandBox.
Within the root of your project, run:
box install cbwireIf you want the latest bleeding edge, run:
box install cbwire@beLayout Setup
You need to add references for wireStyles() and wireScripts() to your layout file.
<!--- ./layouts/Main.cfm --->
<cfoutput>
<!DOCTYPE html>
<html lang="en">
<head>
<title>CBWIRE Example</title>
#wireStyles()#
</head>
<body>
<!--- JavasScript references below --->
#wireScripts()#
</body>
</html>
</cfoutput>CBWIRE will not work if you do not add these to your layout.
Inserting Wires
You can insert Wires anywhere in your layout or ColdBox views using wire( componentName ).
Last updated
Was this helpful?