Changed saving inside the controller to reflect recent PHPixie changes