[TYPO3-mvc] Getting rid of base wrap inside a controller action?

Braulio J. Solano-Rojas braulio at solsoft.biz
Sat Oct 30 00:04:35 CEST 2010


Hello.

I have an action that's called by AJAX and I would like not to have the 
base wrap, just to return a number.  I have tried several things like:

$this->throwStatus(202, 'OK', number_format($rate, 2, '.', '\''));
		
$this->response->setContent(number_format($rate, 2, '.', '\'')); /* this 
one also calls empty view */

return number_format($rate, 2, '.', '\'');

But nothing seems to work.

How can I get rid of it inside of the action (without Typoscript)? 
Someone has done it?

Thanks in advance...

Best regards,

B.


More information about the TYPO3-project-typo3v4mvc mailing list