使用 Zend Framework 2 重写 Zend Framework 1 应用程序

Rewriting Zend Framework 1 App with Zend Framework 2

在我的 ZF1 应用程序中我有插件,它在 Bootstrap.php 加载并检查我的应用程序是否已安装。如果我的应用程序未安装,则会将用户重定向到安装模块。

我的问题现在在 ZF2 中,我该怎么做?

ZF2 有一个 bootstrap 事件 and you can read all about it in the documentation

所以答案是:是的,你可以做到。