[eluser]chotz[/eluser]
I am getting the following error when i try to load the model.
"Unable to locate the model you have specified:".
I read all the related threads to this problem.
I have checked the class name and the file name. There is no case sensitive
issue here.
I can't figure out whats causing this error.
Please help me!
Here is my Model:
<?php
class Test extends Model{
function index(){
echo 'loaded the model';
}
}
?>
and i have named this file as test.php. and i have saved this under model/GameDev/test.php
Here is how i load the model from Controller
<?php
class Newsadmin extends Controller{
function __construct(){
parent::Controller();
}
function ldmodel(){
echo 'Loading model ... ';
$this->load->model('/GameDev/test.php');
}
function show(){
$this->load->view('/GameDev/newsad_view.php');
}
}
?>