[eluser]Unknown[/eluser]
I am new to the codeigniter. I just downloaded 2.1.3 and it works well. The welcome controller and view works. But when I added a new controller and view it showing an error.
Error looks like:
-----------------------
A PHP Error was encountered
Severity: Notice
Message: Undefined property: Index::$load
Filename: controllers/index.php
Line Number: 7
Controller code:
------------------------
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Index extends CI_Controller {
public function index()
{
$this->load->view('welcome_message');
}
}
Not sure what this error is about. I have tried the same thing which was in welcome