Problem with Codes - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Problem with Codes (/showthread.php?tid=66569) Pages:
1
2
|
RE: Problem with Codes - Jay01 - 11-08-2016 (11-08-2016, 12:04 AM)Wouter60 Wrote: In your attachment, it looks like you name your controller "Controller.php". This is a recipe for trouble. Controller is a reserved name in CI for a specific type of class.I sincerely appreciate your time and efforts in getting this View program work I observed after putting these statements in the Controller $this->load->model('invoices_model'); $page_data['get_debtors'] = $this->invoices_model->get_debtors; it blows up giving me this message he localhost page isn’t working localhost is currently unable to handle this request. if I remove the statements above my program will run appropriately. Thank you very much in advance looking into this issues for me RE: Problem with Codes - Wouter60 - 11-08-2016 Insert parentheses () after ->get_debtors: PHP Code: $page_data['get_debtors'] = $this->invoices_model->get_debtors(); |