On Thu, Oct 29, 2009 at 6:08 AM, Nick Pack <nick@nickpack.com> wrote:
You can do (in your controller):Enkhbilguun Erdenetsogt wrote:
Hello,
I'm learning Ajax with Zend Framework, and I just want to make my typical Zend Db Query Object (fetchAll()ed) to Json encoding ready array.
Can someone help me?
Thank you very much in advance.
Sincerely,
Enkhbilguun Erdenetsogt
$results = $table->fetchAll()->toArray();
$this->_helper->json($results);
Hope that helps
--
Shaun J. Farrell
Washington, DC
(202) 713-5241
www.farrelley.com
没有评论:
发表评论