Welcome Guest, Not a member yet? Register   Sign In
How to call Model (used HMVC)
#4

[eluser]d0ri0[/eluser]
Code:
class Map extends Controller {

    function Map()
    {
        parent::Controller();  
        $this->load->model('module_model');
    }

    
    function display()
    {        
        $data['module'] = $this->module_model->get_settings(1);  

        $this->load->view('display', $data);
    }
    
}

It is the line $data['module'] = $this->module_model->get_settings(1); that produces the error.

I have also tried extending MX_Controller {} but that gives the error:
Code:
Fatal error: Call to undefined method MX_Controller::Controller() in C:\wamp\www\cms\application\modules\map\controllers\map.php

I swiched back to an older version of hmvc, that works good.


Messages In This Thread
How to call Model (used HMVC) - by El Forum - 09-16-2010, 04:46 AM
How to call Model (used HMVC) - by El Forum - 09-16-2010, 06:19 AM
How to call Model (used HMVC) - by El Forum - 09-16-2010, 08:08 AM
How to call Model (used HMVC) - by El Forum - 09-16-2010, 08:43 AM
How to call Model (used HMVC) - by El Forum - 09-16-2010, 09:17 AM
How to call Model (used HMVC) - by El Forum - 09-16-2010, 09:28 AM
How to call Model (used HMVC) - by El Forum - 09-16-2010, 10:17 AM
How to call Model (used HMVC) - by El Forum - 09-16-2010, 02:10 PM
How to call Model (used HMVC) - by El Forum - 09-17-2010, 05:35 AM
How to call Model (used HMVC) - by El Forum - 09-20-2010, 06:51 PM
How to call Model (used HMVC) - by El Forum - 09-21-2010, 05:23 AM
How to call Model (used HMVC) - by El Forum - 09-21-2010, 06:25 AM
How to call Model (used HMVC) - by El Forum - 09-21-2010, 06:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB