MVC/REST php