json - Zend framework 2 - Dojo_Data -
in zend framework 2, way populate dojogrid store dojo_data in zf1 ?
this code zf1 project need adapt zf2 :
mycontroller :
public function loaduseraction() { // ... retrieve db array of users $userlist = $dbuser->fetchall(); $usrobj= new zend_dojo_data("id_user", $userlist); $this->view->assign("users", $usrobj->tojson()); }
myview :
<div data-dojo-type="dojox.data.queryreadstore" url="<?= $this->url(array('action'=>'loaduser')); ?>" id="userstore"></div>
thank support.
zf2 has no in-built dojo-integration , appears no available zendservice_package either, you'll have manually javascript interaction.
Comments
Post a Comment