i am practicing CI framework on PHP when i get this error
Message: Undefined property: Test_controller::$testFunction
My Test_controller.php looks like this
class Test_controller extends CI_Controller {
public function test(){
$this->load->model('Test_model');
$test = $this->Test_model->testFunction;
echo "Message : " . $test;
}
and my Test_model.php looks like this
class Test_model extends CI_Model{
public function testFunction(){
return "This is a test function on model";
}
I can't find where i made a mistake.
Thanks for answering.