1
우리는 Silverstripe 2.4를 사용하고 있습니다. FormAction을 통해 약 2000 개의 필드 세트와 저장 버튼이있는 양식이 있습니다. 실버 스트라이프 모양의 모든 것이 곧장 형성됩니다. 저장 기능은 최대 500 개의 데이터 배열을 기억할 수 있습니다. 한도를 늘릴 수있는 곳이 있습니까? 이 페이지는 2000 개의 텍스트 필드를 렌더링 할 수 있습니다.실버 스트라이프 - FieldSet 및 FormAction 한도? 한도를 늘리시겠습니까?
<?php
class ESM_Test extends Form {
public $jsValidationIncluded = false;
public function __construct($controller, $name, $systemId = null) {
$fields = new FieldSet();
//push 2000 text field into fieldset
for ($i = 0; $i <2000; $i++) {
$fields->push(new TextField('Test_'.$i,'Test_'.$i, $i));
}
$actions = new FieldSet();
$saveButton = new FormAction('doSave', 'Save');
$actions->push($saveButton);
parent::__construct($controller, $name, $fields, $actions);
$this->unsetValidator();
}
public function doSave($data, $form) {
var_dump($data); //I only get to 500 data array instead of 2000 data array
}
}
"max post vars"또는 그와 비슷한 PHP 설정이 있습니다. 그것을 늘려야 할 수도 있습니다. –