ColdMVC

Overview

Controllers are responsible for handling requests, fetching data from the model, and optionally rendering views.

All public methods on a controller are considered actions.

Directory Structure

Controllers are located inside your application's /app/controllers/ directory.

Naming Conventions

In order for a component to be considered a controller, the file must be named using a "Controller" suffix. For example, a user controller would be located at /app/controllers/UserController.cfc.