{"id":8133,"date":"2015-11-28T01:39:52","date_gmt":"2015-11-28T01:39:52","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/11\/28\/how-to-create-yii2-inline-checkbox-list-open-source-projects-yiisoft-yii2\/"},"modified":"2022-08-30T15:03:00","modified_gmt":"2022-08-30T15:03:00","slug":"how-to-create-yii2-inline-checkbox-list-open-source-projects-yiisoft-yii2","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/11\/28\/how-to-create-yii2-inline-checkbox-list-open-source-projects-yiisoft-yii2\/","title":{"rendered":"How to create yii2 inline checkbox list-open source projects yiisoft\/yii2"},"content":{"rendered":"<p>I have described my problem on yii2 forum, but no one helped me, most likely because no one knows the answer.<\/p>\n<p>Here is the short description here.<\/p>\n<p>I would like to make this:<\/p>\n<pre><code>Option 1\nOption 2\nOption 3\n<\/code><\/pre>\n<p>but with yii2 checkboxList Html helper.<\/p>\n<p>This is my simplified array of checkbox values<\/p>\n<pre><code>\n<\/code><\/pre>\n<p>I need to insert the <code>class=\"checkbox-inline\"<\/code> into the label tags of each checkbox generated by this yii2 helper method but I can not figure out how to do it.<\/p>\n<p>I was following these guides: checkboxList and checkbox one ( I can&#8217;t post more than 2 links because I am new here ) but they are not helpful to me, I just do not understand what I have to do. Everything I tried just failed.<\/p>\n<p>Can someone help me please, I am trying for 3 days now ?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have described my problem on yii2 forum, but no one helped me, most likely because no one knows the answer. Here is the short description here. I would like to make this: Option 1 Option 2 Option 3 but with yii2 checkboxList Html helper. This is my simplified array of checkbox values I need [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8133","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/8133","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=8133"}],"version-history":[{"count":1,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/8133\/revisions"}],"predecessor-version":[{"id":8594,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/8133\/revisions\/8594"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=8133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=8133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=8133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}