Location: PHPKode > scripts > Tina MVC > tina-mvc/tina_mvc/admin_pages/admin_pages_form_helper_advanced_view.php
* Template File: Tina MVC Wordpress admin pages - form helper advanced use
* @package  Tina-MVC
* @subpackage Docs
 * Security check - make sure we were included by the main plugin file
if( ! defined('TINA_MVC_LOAD_VIEW') ) exit();
<div class="wrap"><br />

<h2>The Form Helper - Advanced Usage</h2>

<p><em><strong>NB:</strong> All paths are relative to the Tina MVC plugin folder: <code><?= TINA_MVC\plugin_folder() ?></code>.</em></p>

<p>The following controller (in <code>samples/09_form_helper_advanced/test_form_2_controller.php</code>) shows more advanced
useage of the forms helper.</p>


<p>This example illustrates the use of:
    <li>Using method chaining to add field properties</li>
    <li>Adding multiple validation rules</li>
    <li>Using 'db_table' and 'db_field' to group submitted data (see <code>$form->get_posted_data()</code> and
        <code>$form->get_posted_db_data()</code> towards the end of the this controller file)</li>

<div style="line-height: 1.1em; background: #eaeaea;"><?= $code091 ?></div>


<div style="line-height: 1.1em; background: #eaeaea;"><?= $code092 ?></div>

Return current item: Tina MVC