<small id='YoYs6'></small><noframes id='YoYs6'>

    • <bdo id='YoYs6'></bdo><ul id='YoYs6'></ul>

    <i id='YoYs6'><tr id='YoYs6'><dt id='YoYs6'><q id='YoYs6'><span id='YoYs6'><b id='YoYs6'><form id='YoYs6'><ins id='YoYs6'></ins><ul id='YoYs6'></ul><sub id='YoYs6'></sub></form><legend id='YoYs6'></legend><bdo id='YoYs6'><pre id='YoYs6'><center id='YoYs6'></center></pre></bdo></b><th id='YoYs6'></th></span></q></dt></tr></i><div id='YoYs6'><tfoot id='YoYs6'></tfoot><dl id='YoYs6'><fieldset id='YoYs6'></fieldset></dl></div>
    <tfoot id='YoYs6'></tfoot>

    1. <legend id='YoYs6'><style id='YoYs6'><dir id='YoYs6'><q id='YoYs6'></q></dir></style></legend>

        将 3rd 方库添加到 ZendFramework

        时间:2023-10-02

        <small id='aC2kW'></small><noframes id='aC2kW'>

        <i id='aC2kW'><tr id='aC2kW'><dt id='aC2kW'><q id='aC2kW'><span id='aC2kW'><b id='aC2kW'><form id='aC2kW'><ins id='aC2kW'></ins><ul id='aC2kW'></ul><sub id='aC2kW'></sub></form><legend id='aC2kW'></legend><bdo id='aC2kW'><pre id='aC2kW'><center id='aC2kW'></center></pre></bdo></b><th id='aC2kW'></th></span></q></dt></tr></i><div id='aC2kW'><tfoot id='aC2kW'></tfoot><dl id='aC2kW'><fieldset id='aC2kW'></fieldset></dl></div>
        1. <tfoot id='aC2kW'></tfoot>

              <tbody id='aC2kW'></tbody>
            • <legend id='aC2kW'><style id='aC2kW'><dir id='aC2kW'><q id='aC2kW'></q></dir></style></legend>

                  <bdo id='aC2kW'></bdo><ul id='aC2kW'></ul>
                  本文介绍了将 3rd 方库添加到 ZendFramework的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我的问题很简单:

                  如何添加 API 和/或第 3 方库到我的 ZendFramework以某种方式应用它可以在一个控制器

                  How do I add an API and/or 3rd party library to my ZendFramework application in a way which makes it possible to access it in a controller

                  推荐答案

                  这是一篇详细介绍如何实现此目标的博客文章:http://blog.keppens.biz/2009/05/add-your-own-library-to-your-new-zend.html

                  Here is a blog post detailing how to achieve this: http://blog.keppens.biz/2009/05/add-your-own-library-to-your-new-zend.html

                  或者,如果您不想调整 application.ini 文件,您可以通过 Bootstrap 类来完成.将此函数添加到 Bootstrap:

                  Alternatively, if you don't want to tweak the application.ini file, you can do it through your Bootstrap class. Add this function to Bootstrap:

                   protected function _initAutoload() {
                      $loader = Zend_Loader_Autoloader::getInstance();
                      $loader->registerNamespace('MyCode_');
                  }
                  

                  然后在library"文件夹中,添加一个名为MyCode"的文件夹.该文件夹应该与Zend"文件夹平行.当然,您应该更改MyCode"以反映您要添加的库的名称.

                  Then in the "library" folder, you would add a folder called "MyCode". This folder should be parallel to the "Zend" folder. Naturally you should change "MyCode" to reflect the name of the library you're adding.

                  我应该注意,通过使用上述方法,我假设代码使用 PEAR 命名方案(就像 ZF).

                  I should note that by using the above method, I'm assuming the code uses the PEAR naming scheme (just like ZF).

                  这篇关于将 3rd 方库添加到 ZendFramework的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:Zend 框架 Oauth 提供程序 下一篇:如何比较两个 Zend_Date 对象的日期部分?

                  相关文章

                  最新文章

                    <tfoot id='IanwC'></tfoot>
                  1. <i id='IanwC'><tr id='IanwC'><dt id='IanwC'><q id='IanwC'><span id='IanwC'><b id='IanwC'><form id='IanwC'><ins id='IanwC'></ins><ul id='IanwC'></ul><sub id='IanwC'></sub></form><legend id='IanwC'></legend><bdo id='IanwC'><pre id='IanwC'><center id='IanwC'></center></pre></bdo></b><th id='IanwC'></th></span></q></dt></tr></i><div id='IanwC'><tfoot id='IanwC'></tfoot><dl id='IanwC'><fieldset id='IanwC'></fieldset></dl></div>

                    <small id='IanwC'></small><noframes id='IanwC'>

                    <legend id='IanwC'><style id='IanwC'><dir id='IanwC'><q id='IanwC'></q></dir></style></legend>

                      <bdo id='IanwC'></bdo><ul id='IanwC'></ul>