function LocationController() { //Create model instances $this->models['Location'] = new LocationModel(); //instantiate the parent, it automatically echos, so it must be placed last parent::FRRestServer(); }
function ArticleController() { $this->models['Article'] = new ArticleModel(); parent::FRRestServer(); }
function UserController() { $this->models['User'] = new UserModel(); $this->returnXML = true; parent::FRRestServer(); }