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 what is expected except it outputs the website index contents.
$ cd /Users/MyUsername/Sites/code
$ php index.php tools message
The output I get is the index page HTML source, e.g. http://localhost/code
.
The expected result should be
Hello World!
How can I achieve this to make it work?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…