Articles with Tags: encoded label

Adding a un-encoded label to an Active Checkbox

When you generate a checkbox using Yii's standard ActiveField mechanism, the label is derived from the attributesLabels in the model class [snippet id=227] The above statement uses the $holiday which was created in the controller using $holiday = Holiday::find();The system will populate the label text from the $article->attributeLabels['flexible'] property and

[more...]