FAQ - raymondjavaxx/roxphp GitHub Wiki

How do I return just a status code without rendering a template? The status code is the only thing I need for my Ajax call.

You need to render an empty response inside your controller action, like this

public function removeAction($id = null) {
	$this->response->status = 200;
	$this->response->render();
	exit();
}