This method will call UrlManager::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 addRules ( array $rules, boolean $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. |