Use Dojo in the ZF

前端之家收集整理的这篇文章主要介绍了Use Dojo in the ZF前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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');
原文链接:https://www.f2er.com/dojo/291492.html

猜你在找的Dojo相关文章