createSortParam() public method
Creates the sort variable for the specified attribute.
The newly created sort variable can be used to create a URL that will lead to sorting by the specified attribute.
| public string createSortParam ( $attribute ) | ||
|---|---|---|
| $attribute | string |
The attribute name |
| return | string |
The value of the sort variable |
| throws | yii\base\InvalidConfigException |
if the specified attribute is not defined in $attributes |
Please login to continue.