Skip to content

Global Helpers

capitalize()

capitalize() — returns string

Available in: controller, model, test, mapper, migrator, migration, tabledefinition Category: String Functions

Capitalizes the first letter of every word in the provided text, creating a nicely formatted title or sentence.

NameTypeRequiredDefaultDescription
textstringyes
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")#