[eluser]Unknown[/eluser]
Hi guys,
I'm new with CI and i trying to just create a model and load it from controller. When i do it, i got the following error:
Class 'Pessoa_model' not found in C:\xampp\htdocs\flightManager\system\core\Loader.php on line 303
Following is the code from
Controller:
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Welcome extends CI_Controller {
public function index()
{
$this->load->model('pessoa_model', 'pessoa');
}
}
/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */
?>
And from
Model:
Code:
<?php
namespace application\models;
class Pessoa_model extends \CI_Model {
function __construct() {
parent::__construct();
}
}
?>
PS:. Btw, ZendStudio is putting a '\' before CI_Model. If i remove the '\', the error became:
Fatal error: Class 'application\models\CI_Model' not found in C:\xampp\htdocs\flightManager\application\models\pessoa_model.php on line 4
What am i doing wrong?
Thanks