[eluser]sangharsha[/eluser]
Thanks for answer.
Lemme re-phrase the situation:
I have regular classes in Models which use:
Code:
$this->db->query($some_sql);
...
And I also have a plugin, which needs database access, hence there I use
Code:
$this->NewObj =& get_instance();
$query=$this->NewObj->db->query($some_sql2);
...
But now when the control gets back to normal classes, I am unable to use
Code:
$this->db->query($some_sql3);
...
The database query simply doesn't run.
So is there any way I can again access the main CI object?
Was this understandable?
I'll further clarify if needed.
Thanks again.