1

したがって、Windows xamppサーバーで正常に機能する複雑な生成フォームが少し発生していますが、Linux本番サーバーでの送信後にドロップダウンフィールドの値が取得されません-理由は??

    $f=$block->add('Form');

    if($dropdown) {
        $f->addField('Dropdown',$dropdown['value'],$dropdown['label'])
            ->setModel($dropdown['model']);

    }

    // Button
    $b=$f->add('Button')->setLabel($label);

    if($dropdown) {
        $b->js('click', $f->js()->atk4_form('submitForm'));
    }
    else {
        $b->js('click')->univ()
            ->newWindow($this->api->getDestinationURL(
                                './details',
                                array('model'=>$model,'type'=>$type)
                                )
                        )
                        ->execute();    
    }

    $block->add('HR');


if($f->isSubmitted()){
    $f->js()->univ()
            ->newWindow($this->api->getDestinationURL(
                                './details',
                                array(
                                        'model'=>$model,
                                        'type'=>$type,
                                        'field'=>'home_'.$dayShort,
                                        'value'=>$f->get($dropdown['value'])
                                        )
                                )
                        )
                        ->execute();    

    }

}

Windowsでは機能するがLinuxでは機能しない部分は'value'=>$f->get($dropdown['value'])終わりに近づいています

どんな助けでも大歓迎です!

ありがとうグレッグ

4

1 に答える 1

1

When whatever thing works in Windows and don't work in Linux first thing to check out is upper / lower case letters in classnames and filenames.

In this particular case I guess your mistake is because you have addField('Dropdown'), but should have addField('DropDown') with uppercase D in "down".

于 2013-01-09T11:48:02.210 に答える