Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CJuiButton documentation: url property type is wrong #653

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

CJuiButton documentation: url property type is wrong #653

Narretz opened this issue Apr 30, 2012 · 3 comments
Assignees

Comments

@Narretz
Copy link

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

@mdomba
Copy link
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
Copy link
Author

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
Copy link
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
Projects
None yet
Development

No branches or pull requests

2 participants