Codeigniter 4-使用带有参数的Windows Task Scheduler运行功能

时间:2018-07-15 11:13:07

标签: php codeigniter cron

<?php
class MyCronTest extends CI_Controller {

    public function insert($name,$age)
    {
        $this->load->model('user_model');

        $this->user_model->addItem($name,$age);

        echo json_encode(array('return'=>COMPLETE)); //COMPLETE is a constant which is 1

    }

}

?>

我具有该功能,我想在尝试task scheduler的{​​{1}}中将该参数与参数一起使用

但是这不起作用,即使没有参数我也该如何使用C:\xampp\php\php.exe -f C:/xampp/htdocs/mysite/application/controller/MyCronTest.php insert 'The Name',30进行操作,Parameter是否有其他选择?

0 个答案:

没有答案
相关问题