data\Sort createUrl()

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 false.

return string

The URL for sorting. False if the attribute is invalid.

throws yii\base\InvalidConfigException

if the attribute is unknown

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

Please login to continue.