我必须将应用程序从 Zend Framework 1.12.0 迁移到版本 2.似乎有 尚无迁移指南.我已经研究了 ZF2 编码约定,并采用了依赖注入 (ZendDi) 和 PHP 5.3 命名空间.我的目标是将我的 ZF1 应用程序重构为 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.
问题:是否有可能在每个步骤之后使用至少部分工作的应用程序并避免大量重构步骤?如果是,步骤是什么?
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?
这是我对这种分步迁移的想法,但我不知道我是否在每一步都得到了一个工作应用程序:
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:
但是,只有当某些 ZF2 组件与 ZF1 组件一起工作时,我才会在每一步之后都有一个 workin 应用程序.我不知道它是否是例如可以将 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.
在本指南中,我们将介绍以下内容:
In this guide, we will cover the following:
http://framework.zend.com/manual/2.1/en/migration/overview.html
这篇关于从 Zend Framework 1 到 2 的逐步迁移的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
PHP、MySQL PDOException 的死锁异常代码?Deadlock exception code for PHP, MySQL PDOException?(PHP、MySQL PDOException 的死锁异常代码?)
PHP PDO MySQL 可滚动游标不起作用PHP PDO MySQL scrollable cursor doesn#39;t work(PHP PDO MySQL 可滚动游标不起作用)
PHP PDO ODBC 连接PHP PDO ODBC connection(PHP PDO ODBC 连接)
使用 PDO::FETCH_CLASS 和魔术方法Using PDO::FETCH_CLASS with Magic Methods(使用 PDO::FETCH_CLASS 和魔术方法)
php pdo 只从 mysql 获取一个值;等于变量的值php pdo get only one value from mysql; value that equals to variable(php pdo 只从 mysql 获取一个值;等于变量的值)
MSSQL PDO 找不到驱动程序MSSQL PDO could not find driver(MSSQL PDO 找不到驱动程序)