In the 2.x.x versions of CodeIgniter the these classes are called like CI_Controller
(every other system class is prefixed with CI_
.
Try changing it like this:
class HelloWorld extends CI_Controller {
// if you don't want to do anything in the __controller you don't have to
// override it, so its omitted
public function index() {
echo "Hello, World!";
}
}