ColdMVC

Helpers

ColdMVC allows you to create helper components that are available to your entire application. These helper components are good for containing useful methods similar to those found on cflib.org.

When ColdMVC first loads, it will load any helpers located within your application's /app/helpers/ folder, then any helpers inside /coldmvc/app/helpers/ folder that haven't been loaded yet. These helpers will then be available throughout your application inside the $ and coldmvc variables.

ColdMVC ships with a handful of helpers that can be found inside /coldmvc/app/helpers/. If you would like to override the functionality of one of ColdMVC's helpers, simply create a .cfc with the same name inside your application's /app/helpers/ directory, extend the corresponding ColdMVC helper, and make your changes.

You can create your own helpers by creating a .cfc and placing it inside your application's /app/helpers/ folder. For example, if you created a file located at /app/helpers/tony.cfc, you would then have access to that helper throughout your application by using $.tony or coldmvc.tony.

array

Helper methods for working with arrays.

asset

Helper methods for working with public assets (images, css files, js files).

bind

Helper methods for working with binding forms to data.

config

Helper methods for accessing configuration variables.

data

Helper methods for working with various data types.

date

Helper methods for working with dates.

factory

Helper methods for working with the internal bean factory.

form

Helper methods for displaying form elements.

format

Helper methods for formatting data.

html

Helper methods for display HTML elements.

link

Helper methods for generating URL links.

list

Helper methods for working with lists.

page

Helper methods for working with page-specific data.

query

Helper methods for working with queries.

querystring

Helper methods for working with querystrings.

request

Utility methods for working with request data.

string

Helper methods for working with strings.

struct

Helper methods for working with structs.

url

Helper methods for working with URLs.

user

Facade for working with the current user.

valid

Helper methods for validating data.

xml

Helper methods for working with xml.