web\UrlRule substitutePlaceholderNames()

substitutePlaceholderNames() protected method (available since version 2.0.7)

Iterates over $placeholders and checks whether each placeholder exists as a key in $matches array.

When found - replaces this placeholder key with a appropriate name of matching parameter. Used in parseRequest(), createUrl().

See also $placeholders.

protected array substitutePlaceholderNames ( array $matches )
$matches array

Result of preg_match() call

return array

Input array with replaced placeholder keys

doc_Yii
2016-10-30 17:17:11
Comments
Leave a Comment

Please login to continue.