Monday, November 12, 2012

Tip of the Week: View Helpers

Tip of the Week: View Helpers: 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. That "helper" file will automatically be included along with your view by the ColdBox framework. You can place one-off formatting functions, or dynamic JS/CSS in these files, but

DIGITAL JUICE

No comments:

Post a Comment

Thank's!