Class Zend_View_Helper_Json

Description

Helper for simplifying JSON responses

  • copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  • license: New BSD License

Located in /View/Helper/Json.php (line 40)

Zend_View_Helper_Abstract
   |
   --Zend_View_Helper_Json
Method Summary
 string|void json (mixed $data, [bool $keepLayouts = false])
Variables

Inherited Variables

Inherited from Zend_View_Helper_Abstract

Zend_View_Helper_Abstract::$view
Methods
json (line 55)

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

If $keepLayouts is true, does not disable layouts.

  • access: public
string|void json (mixed $data, [bool $keepLayouts = false])
  • mixed $data
  • bool $keepLayouts: 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 that will not be passed to Zend_Json::encode method but will be used here

Inherited Methods

Inherited From Zend_View_Helper_Abstract

 Zend_View_Helper_Abstract::direct()
 Zend_View_Helper_Abstract::setView()

Documentation generated on Mon, 21 Jun 2010 15:30:21 -0400 by phpDocumentor 1.4.3