CJuiButton documentation: url property type is wrong #653

Closed
Narretz opened this Issue Apr 30, 2012 · 3 comments

Comments

Projects
None yet
2 participants

Narretz commented Apr 30, 2012

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

Member

mdomba commented Apr 30, 2012

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

Narretz commented May 2, 2012

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 May 2, 2012

@ghost ghost assigned mdomba May 2, 2012

Member

mdomba commented May 2, 2012

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