Jump to content

codeigniter method error


GD77

Recommended Posts

Hello:

 

I'm using the following from the controller to call a method from the model but receiving and erro:

 

//from the controller  
 function getT(){
   	$th=$this->input->post('the', TRUE);

	$this->model_data->thCheck($th);

   }//END Fn getT()

//from the model
function thCheck($th=NULL){

echo $th;

}

yet I m receiving that error:

Fatal error: Call to undefined method model_Data::thCheck() in ....\controllers\main.php on line 20

Link to comment
https://forums.phpfreaks.com/topic/276289-codeigniter-method-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.