Running a Zend Framework action from command line

后端 未结 10 1311
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-29 17:01

I would like to run a Zend Framework action to generate some files, from command line. Is this possible and how much change would I need to make to my existing Web project t

10条回答
  •  粉色の甜心
    2020-11-29 17:24

    You can just use PHP as you would normally from the command line. If you call a script from PHP and either set the action in your script you can then run whatever you want.

    It would be quite simple really. Its not really the intended usage, however this is how it could work if you wanted to.

    For example

     php script.php 
    

    Read here: http://php.net/manual/en/features.commandline.php

提交回复
热议问题