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

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -