Category Selected:

tutorials

Blog

Tip of the Week: View Helpers

Brad Wood |  November 09, 2012

 

Have you ever had an ad-hoc helper UDF that you needed in your view?  Perhaps it was too localized to put in your global UDF Library, but you didn't want to clutter up your actual view with the logic.   That's what View Helpers are here for.  
 
They're incredibly simple and driven by good-old conventions.  If you have a view file called products.cfm, simply create a file in the same folder called productsHelper.cfm...
Read More

Tip of the Week: Securing Your Application's reinit

Brad Wood |  November 01, 2012

 

One of the first things you learn with ColdBox is how to add ?fwreinit=1 to the end of your URL to force a reload of the entire application.  This is required to pick up new settings, etc.  Many of you probably leave the reinit password at its default of "1".  While that's fine for your development and testing servers, it's not recommended  on production.  Reinitializing your application can potentially be an intensive operation, and you don't w...
Read More

Tip of the Week: Using Environment Control in ColdBox

Brad Wood |  October 25, 2012
One of the most common server configurations is to have a production server and then 1 or more development or testing servers.  The trick with your "lower" environments is you typically want different settings for logging, error messages, data sources, or outgoing E-mails.  Manually switching settings when you move code is sketchy at best and setting up deployment scripts can be more work than you're willing to take on.
 
Enter ColdBox Environ...
Read More

Tip of the Week: ColdBox API Docs

Brad Wood |  October 17, 2012

 

Hopefully you've seen and used the ColdBox docs, recipes, and video tutorials before.   What you may not know is there is an API reference that documents every class and method of the entire framework.  This can be very handy if you want to quickly look up all the arguments to the event.buildLink() method, or see what public methods can be called on a LogBox appender.  
 
The API docs are automatically generated based on component metadata (than...
Read More

Tip of the Week: Using Dynamic Finders with ORM

Brad Wood |  October 10, 2012

 

Dynamic Finders are brand new to ColdBox 3.5.3 which will be released shortly.  I usually give tips on released functionality, but we're real excited about our new Grails-inspired functionality and invite you to check it out on our development line to give them a spin.
 
Dynamic Finders basically let you create very readable code with dynamic method names that describe the criteria being used to to load or count ORM entities. &nbs...
Read More

Tip of the Week: Mapping Entire Directories with Wirebox

Brad Wood |  September 28, 2012

By default, WireBox will look for your CFCs using the "models" convention (scan location). So, if you ask WireBox to get you "Services.Security.PadLockService", WireBox will look for that path and component name in the root of the models directory and create a WireBox mapping for you.

Read More

Tip of the Week: Using Inheritence to Share Event Handler Code

Brad Wood |  September 19, 2012

 

In ColdBox, controllers or event handlers as we call them are defined as CFCs.  Part of the power of this is that you can share and extend code in your applications by simply extending one handler with another.  
 
Imagine a reporting framework where a number of reports will all have a criteria page, validation, execution, and export data action with most of the logic, views, layouts, and models the same between every report ...
Read More

Tip of the Week: AOP Simple Interceptions in Handlers

Brad Wood |  September 05, 2012

 

ColdBox handlers all support these simple AOP-style methods that require no configuration to get running:
  • preHandler 
  • pre{Action}
  • postHandler
  • post{Action} 
  • aroundHandler
  • around{Action}

 

 

Read More

Tip of the Week: Action Arguments in Your Handlers

Brad Wood |  August 23, 2012

The methods in your handlers (actions) have always accepted the "event" object, which is the request context for that event and contains things like the request collection and private request collection.

Read More

Tip of the Week: The ForgeBox Community

Luis Majano |  August 15, 2012

 

We want to build a strong community around the ColdBox family.  That's why we have the ForgeBox source directory.  What is ForgeBox?  I'm glad you asked.  ForgeBox is a public collection of internal and community-contributed plugins, modules, widgets, interceptors and more that you can download and drop into your application to save you time and effort if the wheel you need has already been invented.  
 
Read More