data\Sort createSortParam()

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

doc_Yii
2016-10-30 16:56:03
Comments
Leave a Comment

Please login to continue.