CodeIgniter Forums
Form Generation Lib - Multiple Forms? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forum-22.html)
+--- Thread: Form Generation Lib - Multiple Forms? (/thread-26204.html)



Form Generation Lib - Multiple Forms? - El Forum - 01-08-2010

[eluser]antonumia[/eluser]
hi all,
i'm trying to display different forms (inside separate modules) using form gen lib but my second form includes everything from the first form as well.

They have different names/ids.

Is this possible?

tks,

anton


Form Generation Lib - Multiple Forms? - El Forum - 01-08-2010

[eluser]macigniter[/eluser]
you have to use this in between your forms:

Code:
$this->form->clear();



Form Generation Lib - Multiple Forms? - El Forum - 01-08-2010

[eluser]antonumia[/eluser]
I get Call to undefined method Form::clear()

Ah, it's because i am using 0.2.0 - updated to 1.0 and everything is fine.

tks

anton