ValidateAction.php 824 Bytes
Newer Older
Raph El's avatar
Raph El committed
1 2 3 4 5 6 7 8
 <?php
class ValidateAction extends CAction
{
    public function run($id=null, $type=null , $tpl=null)
    {
        

        $res = Answer::validate($_POST);
Raph El's avatar
Raph El committed
9
        Rest::json($_POST);
Raph El's avatar
Raph El committed
10
    }
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
 }

 "organizations" : [ 
    {
        "from" : "aressForm1.multitextvalidationaressForm110",
        "to" : "name"
    }, 
    {
        "from" : "aressForm1.multitextvalidationaressForm111",
        "to" : "sigle"
    }, 
    {
        "from" : "aressForm1.multitextvalidationaressForm112",
        "to" : "siren"
    }, 
    {
        "from" : "aressForm1.multitextvalidationaressForm19",
        "to" : "email"
    }, 
    {
        "from" : "aressForm1.multitextvalidationaressForm113",
        "to" : "WALDEC_RNA
"
    }, 
    {
        "from" : "aressForm1.multitextvalidationaressForm113",
        "to" : "siren"
    }
]