The example in this article describes how Yii implements CheckBox check boxes to be displayed in the same row. Share it with everyone for your reference. The specific implementation method is as follows:
yii allows CheckBoxList to output a new line by default. A checkbox is a new line, which is not satisfactory for some settings. Let's implement yii to make CheckBoxList display on the same line.
Yii's checkBoxList is a column, as shown in the figure below:
Someone said on the Internet
This can be achieved but I found that the effect is still not good. I hope everyone will stop using this line.
My solution is to use yiibooster’s checkBoxListInlineRow to implement , as shown in the figure below:
I hope this article will be helpful to everyone’s PHP program design based on the Yii framework.