This question already has an answer here:
Afternoon all. I have a strange question. I need to have two connections to our db in codeigniter instance. I need to have the standard ci method but i also need to create a pdo class instance for use in new feature setup. We are unfortunately in the position where we have to run a v1.0 system using the old db connectivity and a new v2.0 system using a pdo db object.
How can I go about creating a global instance of this pdo class so that it only gets instantiated once per process call to codeigniter.
</div>