久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

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

    <legend id='xy4xT'><style id='xy4xT'><dir id='xy4xT'><q id='xy4xT'></q></dir></style></legend>
  3. <small id='xy4xT'></small><noframes id='xy4xT'>

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

      將外部腳本與 Zend Framework 集成

      Integrating external scripts with Zend Framework(將外部腳本與 Zend Framework 集成)

        <tbody id='8mmyF'></tbody>
      <legend id='8mmyF'><style id='8mmyF'><dir id='8mmyF'><q id='8mmyF'></q></dir></style></legend>
    1. <i id='8mmyF'><tr id='8mmyF'><dt id='8mmyF'><q id='8mmyF'><span id='8mmyF'><b id='8mmyF'><form id='8mmyF'><ins id='8mmyF'></ins><ul id='8mmyF'></ul><sub id='8mmyF'></sub></form><legend id='8mmyF'></legend><bdo id='8mmyF'><pre id='8mmyF'><center id='8mmyF'></center></pre></bdo></b><th id='8mmyF'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='8mmyF'><tfoot id='8mmyF'></tfoot><dl id='8mmyF'><fieldset id='8mmyF'></fieldset></dl></div>
        • <bdo id='8mmyF'></bdo><ul id='8mmyF'></ul>

              <small id='8mmyF'></small><noframes id='8mmyF'>

              • <tfoot id='8mmyF'></tfoot>
                本文介紹了將外部腳本與 Zend Framework 集成的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                將外部腳本集成到 Zend 框架的最佳方法是什么?讓我解釋一下,因為我可能問錯了.我有一個下載和解析 XML 文件的腳本.該腳本作為日常 cron 作業運行,需要將其數據轉儲到數據庫中.

                What is the best way to integrate an external script into the Zend Framework? Let me explain because I may be asking this the wrong way. I have a script that downloads and parses an XML file. This script, which runs as a daily cron job, needs to dump its data into the database.

                我正在為使用此腳本的站點使用 Zend Framework,在我看來,最好使用我的 Zend_Db_Abstract 子類模型來添加和更新數據庫.怎么做呢?我的腳本是否位于 Zend 組件旁邊的庫中(即 library/Mine/Xmlparse.php),從而可以訪問各種 ZF 組件?我是否只需要在文件本身中包含正確的模型文件和 Zend DB 組件?處理這種集成的最佳方法是什么?

                I am using Zend Framework for the site which uses this script and it seems to me that it would be best to use my subclassed model of Zend_Db_Abstract to do the adding and updating of the database. How does one go about doing this? Does my script go in the library next to the Zend Components (i.e. library/Mine/Xmlparse.php) and thus have access to the various ZF components? Do I simply need to include the correct model files and the Zend DB component in the file itself? What is the best way to handle this sort of integration?

                推薦答案

                在您的庫目錄中,您應該在 Zend 庫文件夾旁邊有您自己的庫.無論你怎么稱呼它(Mylib、Project 等),你都應該將它包含到 Zend Autoloader 中,具體操作如下:

                In your library directory you should have your own library next to the Zend library folder. Whatever you call it (Mylib, Project, ...) you should include it into the Zend Autoloader and that's done as follows:

                require_once 'Zend/Loader/Autoloader.php';
                $loader = Zend_Loader_Autoloader::getInstance();
                $loader->registerNamespace('Project_');
                $loader->setFallbackAutoloader(true);
                if ($configSection == 'development')
                {
                    $loader->suppressNotFoundWarnings(false);
                }
                

                為了讓您的庫與 ZF 和 Autoloader 很好地集成,您應該堅持 ZF 命名約定.這意味著兩件事:

                In order for you library to integrate nicely with ZF and the Autoloader you should stick to the ZF naming conventions. This means two things:

                • 如果您擴展現有的 ZF 類,請復制 ZF 文件夾結構,以便您的文件具有相同的路徑和名稱,但庫名稱除外.例如./library/Zend/Db/Abstract.php =>/library/Project/Db/Abstract.php.
                • 如果您編寫自己的類,仍要堅持自動加載器的 ZF 命名約定以找到它們.

                這篇關于將外部腳本與 Zend Framework 集成的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                Deadlock exception code for PHP, MySQL PDOException?(PHP、MySQL PDOException 的死鎖異常代碼?)
                PHP PDO MySQL scrollable cursor doesn#39;t work(PHP PDO MySQL 可滾動游標不起作用)
                PHP PDO ODBC connection(PHP PDO ODBC 連接)
                Using PDO::FETCH_CLASS with Magic Methods(使用 PDO::FETCH_CLASS 和魔術方法)
                php pdo get only one value from mysql; value that equals to variable(php pdo 只從 mysql 獲取一個值;等于變量的值)
                MSSQL PDO could not find driver(MSSQL PDO 找不到驅動程序)

                1. <small id='KsEDM'></small><noframes id='KsEDM'>

                        <bdo id='KsEDM'></bdo><ul id='KsEDM'></ul>
                      • <tfoot id='KsEDM'></tfoot>
                      • <legend id='KsEDM'><style id='KsEDM'><dir id='KsEDM'><q id='KsEDM'></q></dir></style></legend>
                          <tbody id='KsEDM'></tbody>
                        <i id='KsEDM'><tr id='KsEDM'><dt id='KsEDM'><q id='KsEDM'><span id='KsEDM'><b id='KsEDM'><form id='KsEDM'><ins id='KsEDM'></ins><ul id='KsEDM'></ul><sub id='KsEDM'></sub></form><legend id='KsEDM'></legend><bdo id='KsEDM'><pre id='KsEDM'><center id='KsEDM'></center></pre></bdo></b><th id='KsEDM'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='KsEDM'><tfoot id='KsEDM'></tfoot><dl id='KsEDM'><fieldset id='KsEDM'></fieldset></dl></div>

                          主站蜘蛛池模板: 男女污污动态图 | 欧美一区2区三区4区公司二百 | 亚洲黄色片免费观看 | 少妇黄色 | 日韩视频一级 | 国产7777| 蜜桃视频成人 | 国产伦精品一区二区三区精品视频 | 9久久 | 国产美女黄色片 | 亚洲精品在线免费 | 91视频88av| 免费精品视频 | 日本免费在线 | 国产在线视频一区二区 | 国产性色视频 | 精品国产乱码久久久久久丨区2区 | 国产精品视频免费观看 | 狠狠爱视频 | 操久久 | 亚洲第一天堂无码专区 | 伊人伊成久久人综合网站 | 欧美日本在线观看 | 成人久久久 | 九九热在线精品视频 | 国产免费一区 | 精品视频在线观看 | 亚洲一区二区三区乱码aⅴ 四虎在线视频 | 国产精品一区二区久久久久 | 日韩在线一区二区三区 | 蜜臀av日日欢夜夜爽一区 | m豆传媒在线链接观看 | 欧美 日韩 国产 成人 在线 91 | 久久成人一区 | 国产三级精品三级在线观看四季网 | 免费国产视频 | 亚洲一区二区久久久 | 久久久精品一区 | 午夜电影网站 | 日韩中文一区二区三区 | a级黄色片在线观看 |