editaction, and a key of
12. For all intents and purposes, this will load a view for editing a user with a primary key value in the database of
GETrequests and only apply when you have a
config/routes.cfm(which is the default). See Routing for instructions on overriding this behavior and how to deal with
controllersfolder. It should be named in
PascalCase. For example, a site map controller would be stored at
/site-mapwill reference the
camelCase, a hyphen will be used as a word delimiter in the corresponding URL. For example, a URL of
/site-map/search-engineswill reference the
searchEnginesaction in the
/site-map/search-enginesURL example, the corresponding view file would be stored at
views/layout.cfmand is automatically used by all views in the application.
layout.cfmand storing it in the given controller's view folder. For example, to create a layout for the
userscontroller, the file would be stored at
blog, CFWheels will look for a data source called
blog, for example.
usermodel represents a record from the
usersdatabase table. CFWheels also recognizes plural patterns like
PascalCase. They are stored in the
modelsfolder. So the user model would be stored at
customersegmentstable could have fields called
incomelevel, for example.
camelCase. This makes for easier readability in your application code.
customersegmentsexample above, you could refer to the properties in your CFML as
incomeLevelto stick to CFML's Java-style roots. (Built-in CFML functions are often written in
PascalCase, after all.)