Update IndexController.php

fix functioncall (should be xml, not json)