What problem does it solves?
This Skill streamlines the creation of CFWheels MVC controllers, ensuring proper structure, standard CRUD actions, essential filters, and robust parameter verification. It significantly reduces boilerplate code and prevents common controller-related errors, letting you build application logic faster.
Core Features & Use Cases
- CRUD Action Generation: Quickly scaffold
index, show, new, create, edit, update, and delete actions.
- Filter Implementation: Easily add
beforeAction/afterAction filters for authentication, authorization, and data loading.
- Parameter Verification: Securely validate incoming parameters to prevent injection vulnerabilities.
- Use Case: Generate a
UsersController with all standard CRUD actions, complete with parameter verification for id and an authenticate filter to protect sensitive user data, saving hours of manual coding and ensuring security best practices.
Quick Start
Example: Basic controller structure
component extends="Controller" {
function config() {
verifies(only="show", params="key", paramsTypes="integer");
}
function index() {
resources = model("Resource").findAll();
}
}