Quick links: Content - sections - sub sections
EN

Trace: responseajax responseatom fondamentaux responsetext responsejson appel-action foreword responsejson responseatom responsetext

Wiki: Sitemap - Recent changes - Back link

jResponseText's creation allows the alias : “text”. jResponseText has property “content” which should be filled for output.

   function myaction(){
       $rep = $this->getResponse('text');
       $rep->content = 'my text';
       return $rep;
   }

jResponseText returns “text/plain” Mime-Type by default, and uses jelix-configuration default charset.

jResponseText derives from jResponse, allowing you to modify HTTP headers for Mime-Type and charset as well.

jResponseText can be used as a base to create other formats with text-data, for example : to craft a json response for ajax.

en/manual-1.0/responsetext.txt · Last modified: 2008/11/19 16:02 (external edit)
Recent changes RSS feed Creative Commons License