I'm trying to work locally on my mac with the Mamp software and have a fresh install of Codeigniter set up in a subdirectory of my sites folder and when I try and load my Home controller I'm not getting any errors or have anything being displayed on the screen and I'm trying to find out why that could be.
- Documents
-Sites
-mysite
-application
-controllers
home.php
I'm started the apache and mysql servers and went to http://localhost/mysite/
. The default controller that I have set up in the routes is home and I'm getting a white screen. This is the following code I have inside the home controller.
<?php
class Home extends CI_Controller {
public function __construct() {
parent::__construct();
}
public function index() {
public $data = array();
echo 'this is the index function';
//$this->load->view('homepage', $data, TRUE);
}
}