은 내 양식의 내용을 요청 등의 데이터 설정하려면 :요청 심포니의 내용을 어떻게 설정할 수 있습니까? 내가 수동으로 생성
form[1][]=2&form[2][]=3&form[3][]=5&form[4][]=8&form[apply]=
심포니 Request 객체가 getContent()
방법이 있지만, setContent()
되지 않았습니다.
어떻게 콘텐츠를 번갈아 설정할 수 있습니까?
은 내 양식의 내용을 요청 등의 데이터 설정하려면 :요청 심포니의 내용을 어떻게 설정할 수 있습니까? 내가 수동으로 생성
form[1][]=2&form[2][]=3&form[3][]=5&form[4][]=8&form[apply]=
심포니 Request 객체가 getContent()
방법이 있지만, setContent()
되지 않았습니다.
어떻게 콘텐츠를 번갈아 설정할 수 있습니까?
더러 우나 나를 위해 효과가있는 해결책을 찾았습니다. 요청을 다시 초기화하십시오.
$request->initialize(
$request->query,
$request->request,
$request->attributes,
$request->cookies,
$request->files,
$request->server,
'<your-content>'
);
또 다른 옵션은 Request::create
방법입니다.
Request::create(
'<uri>',
'<method>',
<parameters>,
<cookies>,
<files>,
<server>,
'<your-content>'
);
출처 : HTTP foundation
감사합니다, 흥미로운 아이디어! –