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

        <bdo id='9zosL'></bdo><ul id='9zosL'></ul>
    1. <small id='9zosL'></small><noframes id='9zosL'>

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

      Zend Framework 1.9 和 Doctrine 集成

      时间:2023-10-02

      <tfoot id='oiOLT'></tfoot>
      1. <small id='oiOLT'></small><noframes id='oiOLT'>

            <bdo id='oiOLT'></bdo><ul id='oiOLT'></ul>
              <i id='oiOLT'><tr id='oiOLT'><dt id='oiOLT'><q id='oiOLT'><span id='oiOLT'><b id='oiOLT'><form id='oiOLT'><ins id='oiOLT'></ins><ul id='oiOLT'></ul><sub id='oiOLT'></sub></form><legend id='oiOLT'></legend><bdo id='oiOLT'><pre id='oiOLT'><center id='oiOLT'></center></pre></bdo></b><th id='oiOLT'></th></span></q></dt></tr></i><div id='oiOLT'><tfoot id='oiOLT'></tfoot><dl id='oiOLT'><fieldset id='oiOLT'></fieldset></dl></div>
                <tbody id='oiOLT'></tbody>
              <legend id='oiOLT'><style id='oiOLT'><dir id='oiOLT'><q id='oiOLT'></q></dir></style></legend>
              1. 本文介绍了Zend Framework 1.9 和 Doctrine 集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                我正在尝试设置 Zend Framework 和 Doctrine.

                I'm trying to setup Zend Framework and Doctrine.

                之前有关于 ZF 1.8 的讨论

                There is this previous discussion with ZF 1.8

                • 将 Doctrine 与 Zend Framework 1.8 应用程序集成

                该讨论没有考虑 AutoLoader/Bootstrap 系统.

                That discussion doesn't take into account the AutoLoader / Bootstrap System.

                如果我使用 ./zh.sh 生成一个应用程序框架,我将如何集成 Doctrine.

                If I generate an application skeleton with ./zh.sh how would I go about integrating Doctrine.

                推荐答案

                找到解决方案

                http://pastie.org/481635http://pastie.org/481633

                在 application/configs/application.ini 中设置自动加载器和插件路径:

                Setup autoloader and plugin path in application/configs/application.ini:

                autoloadernamespaces.0 = "Doctrine"
                
                pluginpaths.ZendX_Doctrine_Application_Resource= "ZendX/Doctrine/Application/Resource"
                

                在 public/index.php 中添加模型和生成模型的路径

                Add paths to models and generated models in public/index.php

                set_include_path(implode(PATH_SEPARATOR, array(
                    realpath(APPLICATION_PATH . '/../library'),
                    realpath(APPLICATION_PATH . '/models'),
                    realpath(APPLICATION_PATH . '/models/generated'),
                    get_include_path(),
                )));
                

                将 http://pastie.org/481633 保存到 library/ZendX/Doctrine/Application/Resource/Doctrine.php

                Save http://pastie.org/481633 to library/ZendX/Doctrine/Application/Resource/Doctrine.php

                这篇关于Zend Framework 1.9 和 Doctrine 集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:如何从 Zend 只返回 JSON 下一篇:Zend ACL 是否适合我的需求?

                相关文章

                最新文章

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

                  <tfoot id='2K7R9'></tfoot>
                  <legend id='2K7R9'><style id='2K7R9'><dir id='2K7R9'><q id='2K7R9'></q></dir></style></legend>

                    • <bdo id='2K7R9'></bdo><ul id='2K7R9'></ul>
                  1. <small id='2K7R9'></small><noframes id='2K7R9'>