View::_buffer

29 views
Skip to first unread message

euromark

unread,
Aug 17, 2012, 8:15:42 PM8/17/12
to cakeph...@googlegroups.com
Not too long ago I stumpled upon some issues with FormHelper::postLink.
obviously, using Form::postLink inside a form doesnt work (form in form) - which on more complicated longer forms might happen.
Also, forms should probably not be opend inside <span> or other tags (where those postLinks would be, though, in many cases).

I was wondering if it would be wise to make some kind of View::_buffer to buffer those forms
Similar to Js::buffer() but implicit inside the View class.

So the FormHelper would output the a tag and store the form in the buffer.
And on output it would just add the buffer to the end of the content and return the concatinated result.

any thoughts on that? it would solve some deficiencies like the above case.

euromark

unread,
Aug 17, 2012, 8:35:37 PM8/17/12
to cakeph...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages