Running Codeigniter via CLI outputs website root instead of expected result

前端 未结 6 1765
慢半拍i
慢半拍i 2020-12-20 12:57

I\'m following this tutorial on running Codeigniter via the CLI. I\'ve done everything they\'ve done (copied and pasted) now when I run this command, it doesn\'t do

6条回答
  •  抹茶落季
    2020-12-20 13:49

    This worked for me - found at http://www.daharveyjr.com/codeigniter-cli-command-line-interface/

    $config['uri_protocol'] = 'CLI';
    

    I then run like this

    php index.php controller/function/parameter
    

提交回复
热议问题