An AJAX request to one of my controller actions currently returns the full page HTML.
I only want it to return the HTML (.phtml contents) for that particular action.
The best is to use JsonModel which returns nice json and disable layout&view for you.
public function ajaxCallAction() { return new JsonModel( [ 'success' => true ] ); }