CodeIgniter Forums
Matchbox error : module_model() is not a function - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: Matchbox error : module_model() is not a function (/showthread.php?tid=7608)



Matchbox error : module_model() is not a function - El Forum - 04-16-2008

[eluser]medium_kreation[/eluser]
HI, all is working fine at my local server but when i but the site live it gives the below error..
Code:
Fatal error: Call to undefined function: module_model()

My local server is Windows/Apache/PHP 5.2 /Mysql 5
& my online server is Linux/Apache/PHP 4.4 /MYSQL 5



Error is at the default controller that load when you access the domain url
Code:
<?php

class Site extends Controller {

    function Site()
    {
        parent::Controller();
        
        #load modules
        $this->load->module_model('news','news_model', 'news');

plz help i don’t know what’s wrong..

thanks