从命令行运行 Zend_Application?
有没有一种从命令行运行 Zend_Application 的幸运方法?也就是说,我想运行一个 shell 脚本来调用 Zend_Application,加载其配置,然后调用特定的控制器操作或运行任意命令行脚本来访问应用程序配置、模型等。
我可以想到一些将其组合在一起的方法,但这似乎是一种可能有官方(但记录很少)方法的事情。
Is there a blessed way to run a Zend_Application from the command line? That is, I want to run a shell script that invokes a Zend_Application, loads its configuration, and then calls a specific controller action OR run an arbitrary command line script with access to the applications configurations, models, etc.
I can think of a few ways to hack this together, but it seems like the kind of thing where there may be an official (but poorly documented) way of doing it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一种方法: http://webfractor. wordpress.com/2008/08/14/using-zend-framework-from-the-command-line/
如果混合中实际上有一个 Web 服务器,您当然也可以触发 w/wget 或 lynx ... wget --quiet http://server/app/doTheThing
here's one way: http://webfractor.wordpress.com/2008/08/14/using-zend-framework-from-the-command-line/
if there is actually a web server in the mix, you could also of course trigger w/wget or lynx... wget --quiet http://server/app/doTheThing