CHtml
CHtml
Package | system.web.helpers |
---|---|
Inheritance | class CHtml |
Since | 1.0 |
Source Code | framework/web/helpers/CHtml.php |
CHtml is a static class that provides a collection of helper methods for creating HTML views.
Nearly all of the methods in this class allow setting additional html attributes for the html tags they generate. You can specify for example. 'class', 'style' or 'id' for an html element. For example when using
Nearly all of the methods in this class allow setting additional html attributes for the html tags they generate. You can specify for example. 'class', 'style' or 'id' for an html element. For example when using
array('class' => 'my-class', 'target' => '_blank')
as htmlOp