If we call this:
<?php echo $form->label($model,'Hello my friend'); ?>
We get output it on the viewport the following:
“Hello My Friend”
On the CSS I have nothing that says capitalize, anywhere.
How can we change this behavior ?
I’ve tried to edit the CSS and make:
label {
text-transform: none !important;
}
No luck.
How can we have
Hello my friend
printed exactly as we write it ?
Instead of doing like this on the view file:
We have change it to:
where hello_friend is defined on the respective model method attributeLabels(), like this:
So, as bool.dev properly says, we have to place the attribute name AND NOT a random string.