Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Fatal error: Call to undefined method supp_model::getsuppid() in C:wampwwwminimartapplicationcontrollersminimart.php on line 19
- class minimart extends CI_controller { //myclass
- function __construct()
- {
- parent::__construct();
- }
- function supplier()
- {
- $this->load->model('supp_model');
- $id = $this->uri->segment(3);
- $mini['allrecords']= $this->supp_model->getsuppid($id); //this line give me an error
- $this->load->view('view_supplier.php', $mini);
- }
- class supp_model extends CI_Model {
- function getsuppid($id) //the function exist
- {
- $this->db->select('*');
- $this->db->from('supplier_table');
- $this->db->where('supplier_code ', $id);
- $q = $this->db->get();
- $result = $q->result();
- return $result;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement