Codeigniter task scheduling
Codeigniter task scheduling I am not very much sure if my title question is correct, however i am facing sever error of multiple loops within foreach, despite of having only one item in array. I am pasting my code here; Display (Controller) $table_data = array( 'table_data' => $this->display_model->get_table_data($table_name), 'edit_table_data'=>$this->display_model->get_table_data($table_name,$row_id) ); $form_name='edit_'.$table_name; $this->load->view('header'); $this->load->view($form_name,$table_data); $this->load->view('footer'); You can see tabe_data and edit_table_data is calling same function with different parameter. Here i doubt on the time scheduling between these two function calls (which honestly i am wrong because codeigniter manages function calls) Display_model (Model) public function get_table_data($table_name,$row_id=null) { $return = "...