save(); // @todo remove this when rest_controller is changed to handle a post with no id ^ $userView->user_id = $user->id; $userView->action = _("User Registration"); $userView->button_text = _("Register"); } else { $userView->user_id = $user->id; $userView->action = _("User Modify"); $userView->button_text = _("Modify"); } print $userView; } /** * @see Rest_Controller::_put($resource) */ public function _put($resource) { throw new Exception("@todo User_Controller::_put NOT IMPLEMENTED"); } /** * @see Rest_Controller::_post($resource) */ public function _post($resource) { throw new Exception("@todo User_Controller::_post NOT IMPLEMENTED"); } /** * @see Rest_Controller::_delete($resource) */ public function _delete($resource) { throw new Exception("@todo User_Controller::_delete NOT IMPLEMENTED"); } }