<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                每個Magento的2模塊都有自己的一套配置文件,聚集成模塊的etc目錄中。 不像Magento的1,有在Magento 2沒有單讀配置文件。 **根目錄 ** 我們把組件的根目錄中,您開發組件代碼的頂級目錄。通常,此目錄位于相對于Magento的根目錄下面的目錄之一: 應用程序app的子目錄(推薦): 模塊:app/code 主題:app/design/frontend (前端)app/design/adminhtml(admin) 語言包:app/i18n 您可以輕松地通過克隆Magento的2 GitHub的信息庫建立這種類型的環境。通常情況下,你如果你想貢獻代碼到Magento的代碼庫2克隆庫。 vendor:你得到這個目錄結構,如果你使用的composer創建項目命令獲取Magento的2元數據包(其下載CE或EE代碼),或者如果解壓縮的Magento 2存檔。 **所需的文件 :** 所需要的所有組件如下: ~~~ registration.php: 除其他事項外,用于指定在其中安裝的部件的目錄;默認情況下,組件安裝在<Magento root dir>/vendor目錄。有關詳細信息,請參閱組件注冊。 composer.json: 指定組件的依賴。欲了解更多信息,請參閱composer整合。 ~~~ **etc的配置文件** Magento的2查找在該模塊的etc目錄中各模塊的配置信息。根據您的模塊的需求,你可能在你的模塊的etc目錄的頂層以下配置文件: * acl.xml * config.xml * di.xml * module.xml * webapi.xml 除了這些文件,Magento的2模塊還嵌套了配置目錄中的etc目錄下的任何所需的管理HTML,前端,REST API或SOAP API的具體配置。您對這些目錄中的文件添加覆蓋在全局配置文件中的設置只對各自的功能。也就是說,如果你添加一個config.xml文件etc/frontend,你在該文件中進行的設置將覆蓋中的設置,etc/config.xml中只店面功能。 * <your module root dir>/etc/adminhtml/ * <your module root dir>/etc/frontend/ * <your module root dir>/etc/webapi_rest/ * <your module root dir>/etc/webapi_soap/ **配置文件** * 配置文件,這些文件在該模塊的etc目錄的頂層是全局性的組件。 * 放在子目錄(adminhtml,frontend,webapi_rest,webapi_soap)配置文件僅適用于那些相應的功能區。 **定制你的配置文件為模塊做什么** 為你的模塊需要的配置文件的組取決于新的模塊做了什么。需要的配置文件取決于您打算如何使用該模塊:將模塊體現在店面的用戶界面,還是在Magento管理面板,或作為后端延伸,使一個服務呼叫?或以上所有。例如,如果你的模塊中執行管理功能,您應該添加任何必要的配置文件,這些功能etc/adminhtml/,如: * <your module root dir>/etc/adminhtml/di.xml * <your module root dir>/etc/adminhtml/routes.xml 同樣,如果你的模塊改變UI,你應該需要的配置文件添加到~/etc/frontend/.。例如: * <your module root dir>/etc/frontend/.xml * <your module root dir>/etc/frontend/page_types.xml 如果模塊是可調用的API,還是未在UI表現一些其他的工作,你應該添加任何需要的配置文件中的REST和/或SOAP的WebAPI配置目錄,如: <your module root dir>/etc/webapi_rest/di.xml <your module root dir>/etc/webapi_soap/di.xml 請記住,你可能能夠使用配置文件在您的模塊的etc目錄的頂層完全處理您的模塊的配置,但嵌套的目錄是保持配置整齊條塊分割的有效方法。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看