当前位置 : 主页 > 网页制作 > Dojo >

Use Dojo in the ZF

来源:互联网 收集:自由互联 发布时间:2021-06-15
1.Enable the view to use Dojo public function init() { Zend_Dojo::enableView($this-view); } 2.Configure the Dojo in the view $this-view-dojo()-enable(); $this-view-dojo()-setDjConfig(array("parseOnLoad"=true,"async"=true)); $this-view-dojo(

1.Enable the view to use Dojo

public function init() {  
       Zend_Dojo::enableView($this->view);   
    }
2.Configure the Dojo in the view

  $this->view->dojo()->enable();
        $this->view->dojo()->setDjConfig(array("parseOnLoad"=>true,"async"=>true));
        $this->view->dojo()->setCdnVersion("1.8.1");
        $this->view->dojo()->setCdnDojoPath('/dojo/dojo.js');
网友评论