Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

CJuiButton documentation: url property type is wrong #653

Closed
Narretz opened this Issue · 3 comments

2 participants

@Narretz

In CJuiButton documentation, the url property is described as string. However, since the actual link is created with CHtml::link, it can also be an array of the type CHtml::link expects, i.e. with a controller action, and the additional parameters.

http://www.yiiframework.com/doc/api/1.1/CJuiButton#url-detail

@mdomba
Collaborator

IMO this should be explained better as writing just "public mixed $url" would not give much more information to developers..

@Narretz

public mixed $url

+

a URL or an action route that can be used to create a URL. See normalizeUrl for more details about how to specify this parameter.

(taken form CHtml::link)

@mdomba mdomba closed this
@mdomba mdomba was assigned
@mdomba
Collaborator

The description is updated but will be visible on the site only when the new Yii version is released as it's then that the documentation is regenerated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.