在 Zend 框架中包含 Require.js 的最佳方式是什么?我目前在zend框架中调用js文件的方式如下:
<?php echo $this->jQuery()->setLocalPath($this->path('js/jquery/jquery-1.7.1.min.js'))
->enable()
->setUiLocalPath($this->path('js/jquery/jquery-ui-1.8.16.custom.min.js'))
->uiEnable()
->addStylesheet($this->path('css/jquery/jquery-ui-1.8.16.custom.css'));
echo $this->headScript()->appendFile($this->path('js/jquery.tipTip.js'))
->appendFile($this->path('js/customScripts/facebook.js'))
->appendFile($this->path('js/facebook/jquery.facebook.multifriend.select.js'))
->appendFile($this->path('js/customScripts/logindialog.js'))
->appendFile($this->path('js/customScripts/globalFunctions.js'))
->appendFile($this->path('js/kendo.web.min.js'))
->appendFile($this->path('js/customScripts/fancyAlert.js'))
->appendFile($this->path('js/inc/jquery.mousewheel.min.js'))
->appendFile($this->path('js/pagination-jq.js'))
->appendFile($this->path('js/jquery.tools.min.js'))
->appendFile($this->path('js/fancybox/jquery.fancybox-1.3.4.pack.js'))
->appendFile($this->path('js/jq-history/scripts/jquery.history.min.js'));
?>