Skip to content

Global Helpers

hyphenize()

hyphenize() — returns string

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

Converts camelCase strings to lowercase strings with hyphens as word delimiters instead. Example: myVariable becomes my-variable.

NameTypeRequiredDefaultDescription
stringstringyesThe string to hyphenize.
<!---Outputs "my-blog-post" --->
#hyphenize("myBlogPost")#