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

    <legend id='ydEMI'><style id='ydEMI'><dir id='ydEMI'><q id='ydEMI'></q></dir></style></legend>
    <tfoot id='ydEMI'></tfoot>
    • <bdo id='ydEMI'></bdo><ul id='ydEMI'></ul>

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

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

      我可以在我的項目中使用 Zend translate、date 和 c

      Can I use zend translate, date and cache as standalone class in my project?(我可以在我的項目中使用 Zend translate、date 和 cache 作為獨立類嗎?)

        <tfoot id='BQv3B'></tfoot>
          <bdo id='BQv3B'></bdo><ul id='BQv3B'></ul>
            <tbody id='BQv3B'></tbody>
        • <legend id='BQv3B'><style id='BQv3B'><dir id='BQv3B'><q id='BQv3B'></q></dir></style></legend>
        • <small id='BQv3B'></small><noframes id='BQv3B'>

            • <i id='BQv3B'><tr id='BQv3B'><dt id='BQv3B'><q id='BQv3B'><span id='BQv3B'><b id='BQv3B'><form id='BQv3B'><ins id='BQv3B'></ins><ul id='BQv3B'></ul><sub id='BQv3B'></sub></form><legend id='BQv3B'></legend><bdo id='BQv3B'><pre id='BQv3B'><center id='BQv3B'></center></pre></bdo></b><th id='BQv3B'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='BQv3B'><tfoot id='BQv3B'></tfoot><dl id='BQv3B'><fieldset id='BQv3B'></fieldset></dl></div>
                本文介紹了我可以在我的項目中使用 Zend translate、date 和 cache 作為獨立類嗎?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我將使用 Zend 框架,但只是 Zend 的一些工具,如翻譯、日期和緩存.我可以將它用作獨立類嗎?我的項目有自己的結構,我不想使用整個 Zend 固件.如果是,我應該在我的項目中包含哪些文件?是否有單獨使用每個 Zend fw 工具的文檔?

                I'm going to use Zend framework but just some tool of Zend like translate, date and cache. Can I use it as standalone class? My project has it own structure and I don't want use the whole Zend fw. If yes, which files should I include in my project? Is there a docs for using each Zend fw tool as standalone?

                推薦答案

                請記住,要在另一個項目中使用各種 Zend Framework 組件,您只需要在您的 Zend 庫的某個位置>include_path.使用一個組件復制整個內容似乎有些矯枉過正,但這只是磁盤空間.除非調用它們,否則將這些文件放在那里不會影響性能.這樣,您就不必擔心依賴項,例如 Zend_Exception 及其各種特定于組件的子類.

                And remember, to use various Zend Framework components in another project, you just need to have the Zend library somewhere on your include_path. Copying the whole thing may seem overkill to use one component, but it's only disk space. Having those files there doesn't affect performance unless they are called upon. And this way, you don't have to sweat the dependencies, like Zend_Exception and its various component-specific subclasses.

                因此,例如,如果您有一個文件夾 myapp/lib 來包含您的外部庫,您只需確保您的包含路徑包含該 lib 文件夾并復制將 Zend 文件夾作為 myapp/lib/Zend 放入其中.

                So, for example, if you have a folder myapp/lib to contain your external libraries, you simply make sure that your include path contains that lib folder and copy the Zend folder into it as myapp/lib/Zend.

                然后要使用像 Zend_Translate 這樣的組件,您所要做的就是如下所示:

                Then to use a component like Zend_Translate, all you have to do is something like the following:

                require_once 'Zend/Translate.php';
                $options = array(
                    // your options here
                );
                $translate = new Zend_Translate($options);
                

                通過某種自動加載機制,您甚至可以避免 require_once 調用.設置自動加載就像將以下內容放在某種通用/引導文件中一樣簡單:

                With some kind of autloading mechanism in place, you can avoid even the require_once call. Setting up autoloading is as easy as putting the following in some kind of common/bootstrap file:

                require_once 'Zend/Loader/Autoloader.php';
                Zend_Loader_Autoloader::getInstance();
                

                然后是任何遵循 PEAR 1-class-1-file 命名約定的類 無需顯式添加任何 require/include 語句即可加載.

                Then any classes that follow the PEAR 1-class-1-file naming convention can be loaded without explicitly adding any require/include statements.

                如果磁盤空間真的是一個問題,并且你真的不想要整個 Zend 庫,那么你可以研究一個打包器,比如 Jani Hartikainen 的打包器.

                If disk-space really is a concern and you really don't want the whole Zend library, then you could investigate a packageizer, like Jani Hartikainen's Packageizer.

                這篇關于我可以在我的項目中使用 Zend translate、date 和 cache 作為獨立類嗎?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 找不到驅動程序)
                  <legend id='NphNH'><style id='NphNH'><dir id='NphNH'><q id='NphNH'></q></dir></style></legend>

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

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

                        <bdo id='NphNH'></bdo><ul id='NphNH'></ul>
                          <tbody id='NphNH'></tbody>

                        <tfoot id='NphNH'></tfoot>
                        • 主站蜘蛛池模板: 国产精品永久免费视频 | 亚洲午夜精品一区二区三区他趣 | 91精品国产日韩91久久久久久 | 国产一区二区精品在线 | 国产极品粉嫩美女呻吟在线看人 | 日韩在线中文 | 久久精品综合网 | 亚洲三区在线观看 | 国产成人精品福利 | 91免费小视频 | 一级黄色毛片 | 国产一区二区电影 | 天天看天天操 | 欧美性乱| 国产视频中文字幕在线观看 | 国产精品69毛片高清亚洲 | 久久久久久亚洲 | 国产视频一区在线观看 | 久久久久久久一区二区 | xxx视频| 日韩久久久久久 | 日韩在线一区视频 | 91国产精品 | 欧美日韩网站 | 久久99视频免费观看 | 日韩a级片 | 免费毛片在线 | 亚洲91精品 | 日韩在线一区二区 | 日本黄色激情视频 | av色站 | 日本在线精品视频 | av在线一区二区三区 | 古装人性做爰av网站 | 亚洲一区电影 | 亚洲高清免费视频 | 亚洲精品久久久久久久不卡四虎 | 日韩欧美二区 | 99国产欧美| 国产精品久久久久一区二区三区 | 在线亚洲欧美 |