[TYPO3-mvc] Create an object in multi step form

Claus Fassing claus at fassing.eu
Fri Sep 17 22:43:37 CEST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 16.09.2010 10:29, schrieb roberto blanko:
> Hey guys,
> 
> just another question related to sessions: How do I properly store a value
> in the current session using extbase? Hitting $_SESSION directly can't be
> the right way, can it?

Hello,

I realized a multi step (two steps) form without using session.
There is a dependency from user choice at first step to following fields
in second step.
I used an action for second step with validation and without persist the
object and put the object into second step view.
$this->view->assign('object', $object);
Then I send the fields from first step back by using hidden fields.
<f:form.hidden name="title" value="{object.title}" property="title" />
[...]

But I just have two field at first step and the rest at step two. I
guess not practicable for more than two steps and a lot of fields at
first step :)

Regards Claus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJMk9L5AAoJELsIv+audObfnTYIAPTZn+psimawZBipx30Lumqh
ZNLP04dF9QlBu1wbqloCSPrxVM3DIPbd3rKqkbKCQ/L5uoSk+FFwN2+2z74edWo1
Dk2u2W/ikMwhOzJ7D+n59Gsj1YG9uz6yU39h2Jf21IFLe7n5KDWPb0KtlDN9KXQS
jhYr/8kOcI8mPDlLYvvZed0kDJ+Ct5v60x43oiOLo2BCF0fAwQD+ot76ssQGfjhf
8YBci2UM+L+Jve2wiGvwTbeG7sfZTpo/ubzdCs3nMBED/9oPo09/Y1Hj31twjSKD
QsDgeyK5tML+uQQbdkT25+611apchXGE4rcmebbPKekX1GcPxFDqLgDEcvbjv0E=
=W7qq
-----END PGP SIGNATURE-----


More information about the TYPO3-project-typo3v4mvc mailing list