Form builder: nested forms along with normal elements

I’m pretty sure it is possible, but for some reason it doesn’t work for me.

Form config:




return array(

	'elements' => array(

		'firstName' => array('type' => 'text', 'maxlength' => 32),

		'lastName' => array('type' => 'text', 'maxlength' => 32),

		'sub' => array(

			'type' => 'form',

			'elements' => array(

				'username' => array('type' => 'text', 'maxlength' => 32),

			),

			'model' => new SignupExtForm

		)

	),

	'buttons' => array(

		'signup' => array(

			'type' => 'submit',

			'label' => 'Sign Up'

		),

	),

	'model' => new SignupForm

);



Then when I render the form I get this:

Fatal error: Method CForm::__toString() must not throw an exception in …

Am I doing something wrong?

please ignore.

Found a bug in SignupExtForm

:unsure: