开发者

Easily reuse views, controller, layout in a command line interface

开发者 https://www.devze.com 2023-01-01 09:06 出处:网络
My Zend application is going to get an command line php script that should email reports. There generation depends on Zend_View, Zend_Layout and is currently already w开发者_Go百科orking fine in the w

My Zend application is going to get an command line php script that should email reports. There generation depends on Zend_View, Zend_Layout and is currently already w开发者_Go百科orking fine in the web interface.

How can I reuse this whole MVC functionality in the command line?

Should I add a new controller CommandLineController and call this somehow from the commandline?

How can I kick of such a Controller manually, without having a HTTP request?


I would recommend to check out this excelent tutorial for the Zend Framework from the command line:

Tutorial

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号