JApplication/ toString: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Returns the response
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
<... |
m clean up |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
Returns the response | Returns the response | ||
<! removed transcluded page call, red link never existed > | |||
===Syntax=== | ===Syntax=== | ||
| Line 29: | Line 27: | ||
</source> | </source> | ||
<! removed transcluded page call, red link never existed > | |||
< | |||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=__toString | category=__toString | ||
category=JApplication | category=JApplication | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
[[Category:Archived pages API15]] | |||
Latest revision as of 00:15, 25 March 2017
Description
Returns the response
<! removed transcluded page call, red link never existed >
Syntax
__toString()
Returns
string
Defined in
libraries/joomla/application/application.php
Importing
jimport( 'joomla.application.application' );
Source Body
public function __toString()
{
$compress = $this->getCfg('gzip', false);
return JResponse::toString($compress);
}
<! removed transcluded page call, red link never existed >
Examples
Code Examples