I\'m writing a codeigniter application, upon doing a query i get hit with the following fatal error.
Fatal error: Allowed memory size of 134217728 byt
The problem occurs because a private method kept calling itself over and over again until the allocated memory is exhausted and the script stops execution
private function get_member_data($tid){
return $this->get_member_data($tid);
}
This is a stupid human error, the above method should have been re-written as below
private function get_member_data($tid){
//Call to model method
return $this->invest->get_member_data($tid);
}
Sorry, and thanks everyone.