createUrl() public method
Creates a URL for sorting the data by the specified attribute.
This method will consider the current sorting status given by $attributeOrders. For example, if the current page already sorts the data by the specified attribute in ascending order, then the URL created will lead to a page that sorts the data by the specified attribute in descending order.
See also:
| public string createUrl ( $attribute, $absolute = false ) | ||
|---|---|---|
| $attribute | string |
The attribute name |
| $absolute | boolean |
Whether to create an absolute URL. Defaults to |
| return | string |
The URL for sorting. False if the attribute is invalid. |
| throws | yii\base\InvalidConfigException |
if the attribute is unknown |
Please login to continue.