<td>Username:</td> <td><?php echo smarty_function_WFTextField(array('id' => 'username'), $this); ?> </td> </tr> <tr> <td>Password:</td> <td><?php echo smarty_function_WFPassword(array('id' => 'password'), $this); ?> </td> </tr> <tr> <td colspan="2" align="center"><?php echo smarty_function_WFSubmit(array('id' => 'login'), $this); ?> </td> </tr> </table> <?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat = false; echo smarty_block_WFForm($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); } else { ?> <p><a href="<?php echo smarty_function_WFURL(array('page' => 'doLogout'), $this);
?> </td></tr> <tr><td>Bio</td><td><?php echo smarty_function_WFTextArea(array('id' => 'textarea'), $this); ?> </td></tr> <tr><td>Gender</td><td><?php echo smarty_function_WFView(array('id' => 'radioOne'), $this); ?> <?php echo smarty_function_WFView(array('id' => 'radioTwo'), $this); ?> </td></tr> </table> <?php echo smarty_function_WFSubmit(array('id' => 'action1'), $this); ?> <?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat = false; echo smarty_block_WFForm($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?> <hr> <h3>Person data</h3> <p>Notice how the data of the Person object is updated automatically when you submit the form WITHOUT ANY CODE.</p> <pre>