CoolCMS API

SearchTerm
in package

FinalYes

Search text typed by a user, prepared for the `s-<search>` segment of list routes.

The route masks accept [^/]+, so a slash in the text has no route and the redirect after the search form fails with an invalid link (HTTP 500). The slash is turned into a space; the fulltext treats both as a word separator, so the result is the same.

Table of Contents

Methods

forRoute()  : string

Methods

forRoute()

public static forRoute(string $text) : string
Parameters
$text : string
Return values
string
On this page

Search results