{"id":18389839,"url":"https://github.com/proloser/cakephp-splitform-helper","last_synced_at":"2025-06-12T06:11:18.840Z","repository":{"id":66925389,"uuid":"1060574","full_name":"ProLoser/CakePHP-SplitForm-Helper","owner":"ProLoser","description":"Splits grouped form inputs into separate groups or individual inputs","archived":false,"fork":false,"pushed_at":"2010-11-10T03:01:31.000Z","size":96,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-07T18:45:11.442Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ProLoser.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-11-08T01:18:20.000Z","updated_at":"2015-09-23T10:13:42.000Z","dependencies_parsed_at":"2023-02-20T14:25:16.481Z","dependency_job_id":null,"html_url":"https://github.com/ProLoser/CakePHP-SplitForm-Helper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ProLoser/CakePHP-SplitForm-Helper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProLoser%2FCakePHP-SplitForm-Helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProLoser%2FCakePHP-SplitForm-Helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProLoser%2FCakePHP-SplitForm-Helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProLoser%2FCakePHP-SplitForm-Helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ProLoser","download_url":"https://codeload.github.com/ProLoser/CakePHP-SplitForm-Helper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProLoser%2FCakePHP-SplitForm-Helper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259410151,"owners_count":22852971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T01:44:41.955Z","updated_at":"2025-06-12T06:11:18.825Z","avatar_url":"https://github.com/ProLoser.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CakePHP Split Form Helper\nThis helper allows you to break apart multi-selects, checkbox groups, and radio groups into multiple places on the page.\n\nIf you've ever wanted something like:\n\n\u003e __[ ] Choice A__\n\n\u003e This choice would give you lots of options such as:\n\n\u003e - Long hair\n\u003e - Youthful vigor\n\u003e - STDs\n\u003e\n\u003e __[ ] Choice B__\n\n\u003e This is the wrong choice. People who select it are:\n\n\u003e - Morons\n\u003e - Short\n\u003e - Have ED\n\nThis allows you to add content in between the form inputs. You can also separate inputs into small groups.\n\n\u003e __Fruits:__\n\n\u003e - ( ) Apple\n\u003e - ( ) Orange \n\u003e - ( ) Pair\n\n\u003e __Vegatables:__\n\n\u003e - ( ) Cabbage\n\u003e - ( ) Carrots\n\u003e - ( ) Potatoes\n\n## How to use\n1. Clone/Download to \u003ccode\u003eplugins/split_form\u003c/code\u003e\n2. Add the helper to your controller \n\u003ccode\u003evar $helpers = array('SplitForm.SplitForm');\u003c/code\u003e\n3. Set the view variable in the controller \n\u003ccode\u003e$this-\u003eset('categories', $this-\u003ePost-\u003eCategory-\u003efind('list'));\u003c/code\u003e\n4. Call the method:\n\n#### For one specific value\n\u003cpre\u003eecho $this-\u003eSplitForm-\u003einput('Category', 7);\u003c/pre\u003e\n\n#### For multiple inputs\n\u003cpre\u003eecho $this-\u003eSplitForm-\u003einput('Category', array(3, 2, 6, 7));\u003c/pre\u003e\n\n#### Advanced options\n\u003cpre\u003eecho $this-\u003eSplitForm-\u003einput('Category', array(\n\t3 =\u003e 'Category 3', \n\t2 =\u003e array('label' =\u003e 'Category 2', 'class' =\u003e 'special')\n), array('legend' =\u003e 'Category group 1'));\u003c/pre\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fproloser%2Fcakephp-splitform-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fproloser%2Fcakephp-splitform-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fproloser%2Fcakephp-splitform-helper/lists"}