php - 从命令行运行 Zend_Application?

标签 php zend-framework zend-application

是否有一种从命令行运行 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/

相关文章:

php - 必须加载内存缓存扩展才能使用此后端

php - 引导后访问 Zend 应用程序 Bootstrap _init 函数

javascript - Vue.js (laravel 6) 的值未显示并在控制台中出现错误

zend-framework - 自动注入(inject)资源到 Controller

php - 带有编码输入参数的 SQL 查询在 MySQL 中返回空结果

php - 如何在Zend中以特定的内容类型发布?

php - ZF : Disable Resource Plugin in application. ini

javascript - Symfony2 : How to create a PDF from html that contains a table with dynamic content (width/height)?

php - 在 PHP 中的 while 循环中调用变量