是否有一种从命令行运行 Zend_Application 的幸运方法?也就是说,我想运行一个 shell 脚本来调用 Zend_Application,加载其配置,然后调用特定的 Controller 操作或运行任意命令行脚本来访问应用程序配置、模型等。
我可以想出几种方法来将其组合在一起,但这似乎是一种可能有官方(但记录很少)的方法。
最佳答案
here's一种方式:http://webfractor.wordpress.com/2008/08/14/using-zend-framework-from-the-command-line/
如果混合中实际上有一个 Web 服务器,您当然也可以触发 w/wget 或 lynx... wget --quiet http://server/app/doTheThing
关于php - 从命令行运行 Zend_Application?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1964845/