Running Codeigniter via CLI outputs website root instead of expected result

前端 未结 6 1770
慢半拍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条回答
  •  猫巷女王i
    2020-12-20 13:43

    try this:

    php index.php/controller/function/param1/param2/param3 etc
    

    or

    php index.php controller function param1 param2 param3 etc
    

    also, post the content of your $_SERVER var and value of the 'uri_protocol' variable from config.php.

    $config['uri_protocol'] should be 'AUTO'

提交回复
热议问题