[eluser]tfliam[/eluser]
Hi, just have this small issue with the coding of loading a model.
The code below works fine:
Code:
$this->load->model('ValueWebData', 'fubar', TRUE);
$this->fubar->getTitleByController();
However when I try to access the the same thing using an object with the same name of the class, it shows an error, the code is as such:
Code:
$this->load->model('ValueWebData', TRUE);
$this->ValueWebData->getTitleByController();
And the error shown is :
Code:
A PHP Error was encountered
Severity: Notice
Message: Undefined property: Home::$ValueWebData
Filename: controllers/home.php
Line Number: 13
Anyone have any idea how to access the model using object with the same name of the class?