OR effective with lazy people like me, I’m they type who would rather work twice as hard once, and be lazy the rest of the time, the main reason why I like MODx so much.
but it’s not so much the template, but the conditional code example:
case 2: //save values in session
$_SESSION['address']= $fields['address'];
$_SESSION['town']= $fields['town'];
$_SESSION['formStep'] = 3; //prepare next step
break;
in my instance, I have 7 of these cases, each with 10 or more variables... it’s just a pain .. by now I could have codded it all. But the main issue is, what about the next time? would it not be better to have a code snippet that would just store all info it gets, assign variables to placeholders, regardless of how many steps? And then fire it all off when it gets the "go" variable on the last step.
just my $.02