[Solar-talk] form helper hack

Paul M Jones pmjones at solarphp.com
Mon Oct 16 06:51:50 PDT 2006


On Aug 10, 2006, at 9:29 AM, Rodrigo Moraes wrote:

> Here's a form helper hack:
>
> Add an optional parameter to fetch() to define if  <form></form> will
> be displayed or not (default = true). Why? Sometimes a form may be
> complex and have options in a side bar. They all need to be enclosed
> in the same <form></form>. take for example Wordpress' "publish"
> screen. How would you do that using the current form helper?
> Disallowing <form></form> and then adding it by hand in the start and
> end of your view (or maybe the form helper could provide a method to
> create <form>). Then you can add many form "blocks" to be proccessed
> by the same form object. Hope this makes sense.

Just following up on all my saved emails; this has been implemented  
in the most-recent Solar release.  You can issue $this->form->fetch 
(false) to not-display the <form> and </form> tags.

--

Paul M. Jones  <http://paul-m-jones.com>

Solar: Simple Object Library and Application Repository
for PHP5.   <http://solarphp.com>

Savant: The simple, elegant, and powerful solution for
templates in PHP.   <http://phpsavant.com>




More information about the solar-talk mailing list