Public Member Functions

Zend_View_Helper_Json Class Reference

Inheritance diagram for Zend_View_Helper_Json:
Zend_View_Helper_Abstract Zend_View_Helper_Interface

Public Member Functions

 json ($data, $keepLayouts=false)

Detailed Description

Definition at line 40 of file Json.php.


Member Function Documentation

json ( data,
keepLayouts = false 
)

Encode data as JSON, disable layouts, and set response header

If $keepLayouts is true, does not disable layouts.

Parameters:
mixed$data
bool$keepLayoutsNOTE: if boolean, establish $keepLayouts to true|false if array, admit params for Zend_Json::encode as enableJsonExprFinder=>true|false this array can contains a 'keepLayout'=>true|false that will not be passed to Zend_Json::encode method but will be used here
Returns:
string|void

Definition at line 55 of file Json.php.


The documentation for this class was generated from the following file: