Global Helpers
capitalize()
Signature
Section titled “Signature”capitalize() — returns string
Available in: controller, model, test, mapper, migrator, migration, tabledefinition
Category: String Functions
Description
Section titled “Description”Capitalizes the first letter of every word in the provided text, creating a nicely formatted title or sentence.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
text | string | yes | — |
Examples
Section titled “Examples”1. Capitalize a single sentence
#capitalize("wheels is a framework")#
2. Capitalize a name
#capitalize("john doe")#
3. Capitalize a title
#capitalize("introduction to wheels framework")#