pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

<tfoot id='W1MJI'></tfoot>

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

    1. <i id='W1MJI'><tr id='W1MJI'><dt id='W1MJI'><q id='W1MJI'><span id='W1MJI'><b id='W1MJI'><form id='W1MJI'><ins id='W1MJI'></ins><ul id='W1MJI'></ul><sub id='W1MJI'></sub></form><legend id='W1MJI'></legend><bdo id='W1MJI'><pre id='W1MJI'><center id='W1MJI'></center></pre></bdo></b><th id='W1MJI'></th></span></q></dt></tr></i><div class="f7zjzvr" id='W1MJI'><tfoot id='W1MJI'></tfoot><dl id='W1MJI'><fieldset id='W1MJI'></fieldset></dl></div>
    2. <legend id='W1MJI'><style id='W1MJI'><dir id='W1MJI'><q id='W1MJI'></q></dir></style></legend>
        <bdo id='W1MJI'></bdo><ul id='W1MJI'></ul>
      1. 從 Zend Framework 1 到 2 的逐步遷移

        Step by step migration from Zend Framework 1 to 2(從 Zend Framework 1 到 2 的逐步遷移)
      2. <i id='vxdPj'><tr id='vxdPj'><dt id='vxdPj'><q id='vxdPj'><span id='vxdPj'><b id='vxdPj'><form id='vxdPj'><ins id='vxdPj'></ins><ul id='vxdPj'></ul><sub id='vxdPj'></sub></form><legend id='vxdPj'></legend><bdo id='vxdPj'><pre id='vxdPj'><center id='vxdPj'></center></pre></bdo></b><th id='vxdPj'></th></span></q></dt></tr></i><div class="tl5l5jh" id='vxdPj'><tfoot id='vxdPj'></tfoot><dl id='vxdPj'><fieldset id='vxdPj'></fieldset></dl></div>
        <legend id='vxdPj'><style id='vxdPj'><dir id='vxdPj'><q id='vxdPj'></q></dir></style></legend>
            <tbody id='vxdPj'></tbody>

              <bdo id='vxdPj'></bdo><ul id='vxdPj'></ul>
              <tfoot id='vxdPj'></tfoot>

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

                1. 本文介紹了從 Zend Framework 1 到 2 的逐步遷移的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我必須將應(yīng)用程序從 Zend Framework 1.12.0 遷移到版本 2.似乎有 尚無遷移指南.我已經(jīng)研究了 ZF2 編碼約定,并采用了依賴注入 (ZendDi) 和 PHP 5.3 命名空間.我的目標(biāo)是將我的 ZF1 應(yīng)用程序重構(gòu)為 ZF2 模塊.

                  I have to migrate an application from Zend Framework 1.12.0 to version 2. There seem to be no migration guides yet. I have already studied ZF2 coding conventions and I adopted dependency injection (ZendDi) and PHP 5.3 namespaces. My goal is to refactor my ZF1 application into a ZF2 module.

                  問題:是否有可能在每個步驟之后使用至少部分工作的應(yīng)用程序避免大量重構(gòu)步驟?如果是,步驟是什么?

                  Question: Is it possible to proceed step-by-step with an at least partly working application after every step and avoid huge refactoring steps? If yes, what are the steps?

                  這是我對這種分步遷移的想法,但我不知道我是否在每一步都得到了一個工作應(yīng)用程序:

                  Here's my idea of such a step-by-step migration, but I don't know if I end up with a working application after every step:

                  1. 首先設(shè)置 ZF2 骨架應(yīng)用程序
                  2. 設(shè)置新模塊(MyApp)并重新組織我的 ZF1 應(yīng)用程序的內(nèi)容到 MyApp 模塊文件夾結(jié)構(gòu)中.然后通過從 ZF2 AbstractActionController 擴(kuò)展它來設(shè)置非常基本的配置和引導(dǎo)和遷移 IndexController.模型 (Zend_Db) 和視圖 (Zend_View) 將在稍后遷移.這里的目標(biāo)是讓 IndexController::indexAction 沒有太多依賴項.
                  3. 設(shè)置更多配置和引導(dǎo)(路由、翻譯、區(qū)域設(shè)置、緩存、Db、Acl、ViewHelpers 等).我想先設(shè)置這些組件的 ZF1 版本,然后再逐個遷移.
                  4. 使用 ZendDi 或 使用 ServiceManager.
                  5. 通過使舊的 phing 腳本與新的目錄結(jié)構(gòu)一起工作來設(shè)置自動部署.
                  6. 將視圖(包括助手)和表單遷移到 ZF2.
                  7. 遷移模型(從 Zend_Db 到 ZF2 ZendDb 或到 Doctrine).
                  8. 一一遷移其他 ZF1 組件(翻譯、區(qū)域設(shè)置、緩存、Acl 等).
                  9. 重構(gòu)康復(fù)和長假.
                  1. Start by setting up the ZF2 Skeleton Application
                  2. Set up a new module (MyApp) and reorganize the contents of my ZF1 application into the MyApp module folder structure. Then set up very basic configuration and bootstrapping and migrate the IndexController by extending it from the ZF2 AbstractActionController. The models (Zend_Db) and views (Zend_View) will be migrated later. The goal here is to have a working IndexController::indexAction which doesn't have many dependencies.
                  3. Set up more configuration and bootstrapping (Routing, Translate, Locale, Cache, Db, Acl, ViewHelpers, ...). I'd like to set up the ZF1 versions of these components first and migrate them later one by one.
                  4. Migrate the other controllers and set up dependency injection into the controllers either with ZendDi or by using the ServiceManager.
                  5. Set up automatic deployment by making the old phing scripts work with the new directory structure.
                  6. Migrate the views (including helpers) and forms to ZF2.
                  7. Migrate the models (from Zend_Db either to ZF2 ZendDb or to Doctrine).
                  8. Migrate other ZF1 components one by one (Translate, Locale, Cache, Acl, ...).
                  9. Refactoring rehab and long holiday.

                  但是,只有當(dāng)某些 ZF2 組件與 ZF1 組件一起工作時,我才會在每一步之后都有一個 workin 應(yīng)用程序.我不知道它是否是例如可以將 ZF1 視圖(和視圖助手)與 ZF2 控制器一起使用.

                  However, I will have a workin application after every step only if certain ZF2 components work together with ZF1 components. I have no idea if it's e.g. possible to use ZF1 views (and view helpers) with ZF2 controllers.

                  推薦答案

                  從 Zend Framework 1 遷移

                  本指南旨在提供從 Zend Framework 1 遷移到 Zend Framework 2 的工具和策略.沒有適用于每個項目的單一解決方案,也沒有任何工具可以使流程自動化.

                  This guide is intended to provide tools and strategies for migrating from Zend Framework 1 to Zend Framework 2. There is no single solution that will work for every project, nor any tools to automate the process.

                  在本指南中,我們將介紹以下內(nèi)容:

                  In this guide, we will cover the following:

                  1. 用于為代碼命名空間的工具.
                  2. 用于在 Zend Framework 1 應(yīng)用程序中使用 Zend Framework 2 的工具.
                  3. 并行運(yùn)行 Zend Framework 2 和 Zend Framework 1 的策略.
                  4. 使代碼更易于遷移的策略,主要側(cè)重于域邏輯和 MVC 層的清晰分離.
                  5. 遷移 MVC 層的策略.
                  6. 遷移域?qū)拥牟呗?

                  http://framework.zend.com/manual/2.1/en/migration/overview.html

                  這篇關(guān)于從 Zend Framework 1 到 2 的逐步遷移的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

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

                2. <small id='PBjAl'></small><noframes id='PBjAl'>

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

                    <tbody id='PBjAl'></tbody>
                  <legend id='PBjAl'><style id='PBjAl'><dir id='PBjAl'><q id='PBjAl'></q></dir></style></legend>

                      1. <tfoot id='PBjAl'></tfoot>

                            <bdo id='PBjAl'></bdo><ul id='PBjAl'></ul>
                            主站蜘蛛池模板: 强效碱性清洗剂-实验室中性清洗剂-食品级高纯氮气发生器-上海润榕科学器材有限公司 | 地脚螺栓_材质_标准-永年县德联地脚螺栓厂家 | 风化石头制砂机_方解石制砂机_瓷砖石子制砂机_华盛铭厂家 | 上海单片机培训|重庆曙海培训分支机构—CortexM3+uC/OS培训班,北京linux培训,Windows驱动开发培训|上海IC版图设计,西安linux培训,北京汽车电子EMC培训,ARM培训,MTK培训,Android培训 | 废气处理设备-工业除尘器-RTO-RCO-蓄热式焚烧炉厂家-江苏天达环保设备有限公司 | 在线浊度仪_悬浮物污泥浓度计_超声波泥位计_污泥界面仪_泥水界面仪-无锡蓝拓仪表科技有限公司 | 上海软件开发-上海软件公司-软件外包-企业软件定制开发公司-咏熠科技 | 齿轮减速机_齿轮减速电机-VEMT蜗轮蜗杆减速机马达生产厂家瓦玛特传动瑞环机电 | 乐泰胶水_loctite_乐泰胶_汉高乐泰授权(中国)总代理-鑫华良供应链 | 郑州外墙清洗_郑州玻璃幕墙清洗_郑州开荒保洁-河南三恒清洗服务有限公司 | 一礼通 (www.yilitong.com)-企业礼品解决方案一站式服务平台 | 电车线(用于供电给电车的输电线路)-百科| 在线悬浮物浓度计-多参数水质在线检测仪-上海沃懋仪表科技有限公司 | 千斤顶,液压千斤顶-力良企业,专业的液压千斤顶制造商,shliliang.com | 3D全息投影_地面互动投影_360度立体投影_水幕灯光秀 | 广东银虎 蜂窝块状沸石分子筛-吸附脱硫分子筛-萍乡市捷龙环保科技有限公司 | 找培训机构_找学习课程_励普教育| 电脑知识|软件|系统|数据库|服务器|编程开发|网络运营|知识问答|技术教程文章 - 好吧啦网 | 彼得逊采泥器-定深式采泥器-电动土壤采样器-土壤样品风干机-常州索奥仪器制造有限公司 | 重庆网站建设,重庆网站设计,重庆网站制作,重庆seo,重庆做网站,重庆seo,重庆公众号运营,重庆小程序开发 | 贵州水玻璃_-贵阳花溪闽兴水玻璃厂 | 数年网路-免费在线工具您的在线工具箱-shuyear.com | 企业管理培训,企业培训公开课,企业内训课程,企业培训师 - 名课堂企业管理培训网 | 天然鹅卵石滤料厂家-锰砂滤料-石英砂滤料-巩义东枫净水 | 水厂污泥地磅|污泥处理地磅厂家|地磅无人值守称重系统升级改造|地磅自动称重系统维修-河南成辉电子科技有限公司 | 深圳市超时尚职业培训学校,培训:月嫂,育婴,养老,家政;化妆,美容,美发,美甲. | 千淘酒店差旅平台-中国第一家针对TMC行业的酒店资源供应平台 | 建筑资质代办-建筑资质转让找上海国信启航 | Boden齿轮油泵-ketai齿轮泵-yuken油研-无锡新立液压有限公司 | 车间除尘设备,VOCs废气处理,工业涂装流水线,伸缩式喷漆房,自动喷砂房,沸石转轮浓缩吸附,机器人喷粉线-山东创杰智慧 | 丹尼克尔拧紧枪_自动送钉机_智能电批_柔性振动盘_螺丝供料器品牌 | 碳化硅,氮化硅,冰晶石,绢云母,氟化铝,白刚玉,棕刚玉,石墨,铝粉,铁粉,金属硅粉,金属铝粉,氧化铝粉,硅微粉,蓝晶石,红柱石,莫来石,粉煤灰,三聚磷酸钠,六偏磷酸钠,硫酸镁-皓泉新材料 | 洛阳装修公司-洛阳整装一站式品牌-福尚云宅装饰 | 釜溪印象网络 - Powered by Discuz! | 发电机价格|发电机组价格|柴油发电机价格|柴油发电机组价格网 | PE一体化污水处理设备_地埋式生活污水净化槽定制厂家-岩康塑业 | 坏男孩影院-提供最新电影_动漫_综艺_电视剧_迅雷免费电影最新观看 | 广东恩亿梯电源有限公司【官网】_UPS不间断电源|EPS应急电源|模块化机房|电动汽车充电桩_UPS电源厂家(恩亿梯UPS电源,UPS不间断电源,不间断电源UPS) | 杭州代理记账费用-公司注销需要多久-公司变更监事_杭州福道财务管理咨询有限公司 | 安徽免检低氮锅炉_合肥燃油锅炉_安徽蒸汽发生器_合肥燃气锅炉-合肥扬诺锅炉有限公司 | 行业分析:提及郑州火车站附近真有 特殊按摩 ?2025实地踩坑指南 新手如何避坑不踩雷 | 医疗仪器模块 健康一体机 多参数监护仪 智慧医疗仪器方案定制 血氧监护 心电监护 -朗锐慧康 |