Helper for simplifying JSON responses
package | Zend_View |
---|---|
subpackage | Helper |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
inherited_from | \Zend_View_Helper_Abstract |
direct() : void
inherited_from | \Zend_View_Helper_Interface::direct() |
---|
json(mixed $data, boolean $keepLayouts= false
, boolean $encodeData= true
) : string | void
If $keepLayouts is true, does not disable layouts. If $encodeJson is false, does not JSON-encode $data
mixed
boolean
NOTE: 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 and/or 'encodeData'=>true|false that will not be passed to Zend_Json::encode method but will be used here
boolean
string
void
setView(\Zend_View_Interface $view) : \Zend_View_Helper_Abstract
inherited_from | \Zend_View_Helper_Interface::setView() |
---|
\Zend_View_Interface
\Zend_View_Helper_Abstract
$view : \Zend_View_Interface
null