Kohana — Command Line

后端 未结 6 1820
情话喂你
情话喂你 2021-02-14 02:54

I\'m trying to \"faux-fork\" a process (an email being sent via SMTP) in my web application, and the application is built on Kohana.

    $command = \'test/emai         


        
6条回答
  •  不要未来只要你来
    2021-02-14 03:49

    After looking into Kohana3 source code, I found that it has support for cli (system/classes/kohana/cli.php). You can pass 3 options (uri, method, get, post). So:-

    $ php index.php --uri="items/list"

    would call the list method in Controller_Items.

提交回复
热议问题