{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/6953","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/6953/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/6953/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/6953/events","html_url":"https://github.com/cakephp/cakephp/issues/6953","id":93150149,"number":6953,"title":"Cake3 Feature: Automagic postLinks on open FormHelper forms","user":{"login":"sarrala","id":3417983,"avatar_url":"https://avatars.githubusercontent.com/u/3417983?v=3","gravatar_id":"","url":"https://api.github.com/users/sarrala","html_url":"https://github.com/sarrala","followers_url":"https://api.github.com/users/sarrala/followers","following_url":"https://api.github.com/users/sarrala/following{/other_user}","gists_url":"https://api.github.com/users/sarrala/gists{/gist_id}","starred_url":"https://api.github.com/users/sarrala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarrala/subscriptions","organizations_url":"https://api.github.com/users/sarrala/orgs","repos_url":"https://api.github.com/users/sarrala/repos","events_url":"https://api.github.com/users/sarrala/events{/privacy}","received_events_url":"https://api.github.com/users/sarrala/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cakephp/cakephp/labels/Enhancement","name":"Enhancement","color":"bfe5bf"},{"url":"https://api.github.com/repos/cakephp/cakephp/labels/helpers","name":"helpers","color":"ffffff"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/cakephp/cakephp/milestones/47","html_url":"https://github.com/cakephp/cakephp/milestones/3.0.9","labels_url":"https://api.github.com/repos/cakephp/cakephp/milestones/47/labels","id":1184300,"number":47,"title":"3.0.9","description":"Bugfixes and minor improvements for 3.0.x","creator":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"open_issues":22,"closed_issues":27,"state":"open","created_at":"2015-06-28T17:20:20Z","updated_at":"2015-07-07T08:56:39Z","due_on":"2015-07-12T04:00:00Z","closed_at":null},"comments":9,"created_at":"2015-07-05T21:58:00Z","updated_at":"2015-07-07T10:38:05Z","closed_at":null,"body":"Currently there's that block option for postlinks, I don't have anything against it but it would be great if you don't need to give any options for postlinks that goes inside form.\r\n\r\nCould it be done with internal state that tells if form is open when ::postLink is called and postLinks forms would then be automagically put on queue. FormHelper::end() could then write that queue out.\r\n\r\n```\r\n1. FormHelper::create() {\r\n    form_open = true\r\n}\r\n\r\n2. FormHelper::postLink(): \r\n     form_open === true\r\n         ? output link WITHOUT hidden form\r\n         : output postlink normally.\r\n}\r\n\r\n3. FormHelper::end() { \r\n    close form\r\n    output all hidden forms created while form was open.\r\n}\r\n```\r\n\r\nWhat do you think about it?"},"comment":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/comments/119164548","html_url":"https://github.com/cakephp/cakephp/issues/6953#issuecomment-119164548","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/6953","id":119164548,"user":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"created_at":"2015-07-07T10:38:05Z","updated_at":"2015-07-07T10:38:05Z","body":"@sarrala When I use libraries, I prefer ones that allow me to understand/guess the output based on the code that I wrote.\r\n\r\nIf developers ask for incorrect html that's what they should get. Silently attempting to massage the user's intent has always gone wrong eventually when we've done it in the past."}}