cakephp/cakephp — pull request #795 by dereuromark (2012-08-25 20:56:59+00:00)
Title: view buffer for FormHelper::postLink()

allow View to have a buffer for correct html output in some edge cases.
$this->Form->postLink() for example should not output a form tag inside inline elements like span - only the a tag). also using the above method inside a form would break it currently (form inside form!).

So the buffer method works similar to the js buffer, but will be handled class internally.
The helpers/views only have to write to it. It will automatically be appended to the end of the content block on render.

For the layout you would need to add `fetch('buffer'); ?>` manually, though, right before the closing `

` tag.

see ticket