web\UrlManager addRules()

addRules() public method

Adds additional URL rules.

This method will call buildRules() to parse the given rule declarations and then append or insert them to the existing $rules.

Note that if $enablePrettyUrl is false, this method will do nothing.

public void addRules ( $rules, $append = true )
$rules array

The new rules to be added. Each array element represents a single rule declaration. Please refer to $rules for the acceptable rule format.

$append boolean

Whether to add the new rules by appending them to the end of the existing rules.

doc_Yii
2016-10-30 17:16:59
Comments
Leave a Comment

Please login to continue.