我正在尝试使用Zend''Console''Response::setErrorLevel(http://framework.zend.com/apidoc/2.0/classes/Zend.Console.Response.html)为了实现这一点,但无论如何都设置了成功(代码0)。
顺便说一句,Zend''Console''Response::send被标记为不推荐使用。
我的应用程序被初始化,我只调用$app->run();
为了实现这一目标,我还应该做些什么吗?
谢谢v.
OK,因此弃用是解决方案的线索。
我们需要从Action方法返回ConsoleModel对象,并正确设置错误级别,而不是扰乱响应,然后一切都有意义。
再次:)