I'm running CodeIgniter 2.1.3.
I've gone through posts such as but could not solve my problem:
I've installed CodeIgniter under /var/www/ci/ and access it as http:// localhost/ci/
I've created the simple page application/controllers/helloworld.php
<?php
class HelloWorld extends Controller {
function HelloWorld() {
//function __construct() {
//parent::__construct();
parent::Controller();
}
function index() {
echo "Hello, World!";
}
}
but http:// localhost/ci/index.php/helloworld/
gives me a blank page. How can I fix this?
I've even tried changing config.php to contain
$config['base_url'] = 'http:// localhost/ci/';
(without the extra space in localhost ).
I've got mod_rewrite enabled, I've got mysqli php module enabled.
Where am I going wrong?
Thanks.