Running Codeigniter via CLI outputs website root instead of expected result
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? Vlad Balmos try this: php index.php/controller/function/param1/param2/param3 etc or php index.php controller function param1 param2 param3 etc also,