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

Christine Gerpheide cgerpheide at gmail.com
Sat Oct 30 14:19:53 CEST 2010


2010/10/30 Steffen Ritter <info at rs-websystems.de>

> Am 30.10.2010 00:04, schrieb Braulio J. Solano-Rojas:
>
>  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.
>>
> remove it from the layout? use antoher/no layout?
>
> ___
>


Hi Braulio,

If you mean you have a template set in typo3 and don't want it here because
this is an ajax call... I know you said no typoscript but I think using a
different page type is the best way to go for ajax.  Otherwise the other
thing that comes to mind is using content processing hooks (but a different
page type is much less hassle).

Christine


More information about the TYPO3-project-typo3v4mvc mailing list