0
는이 같은 경로가 있습니다라우팅 4
Route::any("/operations/xml", array("as"=>"operations.xml", "uses"=>"[email protected]"));
을 그리고 내 컨트롤러는 공용 폴더 안에 저장하는 XML 생성
OperationsController.php을 :
public function generateXml(){
$doc = new DomDocument("1.0", "UTF-8");
$doc->formatOutput = true;
//I add my stuff inside de xml from the database here...
$doc->save("xml/test.xml");
}
하지만 내가 필요한 경로 인 http://example.com/operations/xml으로 이동하면 xml을 다운로드 할 수 있습니다. 어떻게해야합니까?
완벽한 감사합니다. –