Running Codeigniter via CLI outputs website root instead of expected result

前端 未结 6 1754
慢半拍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:43

    The output I get is the index page HTML source, e.g. http://localhost/code.

    You have got an error with your routing, your new example CLI controller is not fired, but another controller. Which error you have with your routing is hard to say, as you have not shown your whole code.

提交回复
热议问题