I've found that loading the model and using it as needed seemed like a better approach and it wasn't deleting data from tables mysteriously anymore..
To use another model only when you need it do something like this:
function amodelmethod()
{
loadModel('FooModel');
$fooModel = &new FooModel();
$fooModel->fooMethod();
}
No comments:
Post a Comment