CodeIgniter Forums
CI 2.0 Model Question - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: CI 2.0 Model Question (/showthread.php?tid=36023)



CI 2.0 Model Question - El Forum - 11-18-2010

[eluser]Mischievous[/eluser]
I'm attempting to get modular seperation working again since the latest updates to the bitbucket project.

You removed all function from the model class and added the __get($key) function... but not sure what i need to do for

function:
Code:
public function _ci_assign_to_models()
    {
        foreach ($this->_ci_models as $model)
        {
            self::$APP->$model->_assign_libraries();
        }
    }

in MY_Loader.php for modular seperation? get rid of it? as its not need anymore? idk? thoughts would be appreciated!

Smile


CI 2.0 Model Question - El Forum - 11-18-2010

[eluser]Mischievous[/eluser]
Ok, was able to fix it by simply removing the call to $this->_ci_assign_to_model(); as the new CI2.0 already handles this I believe. Will post updates if anything funky happens. But so far, everything is looking good.