[eluser]section31[/eluser]
What's the best way to check if inside the constructor of a controller to see if the database library is loaded and connected to a database?
The best I could come up with was this
Code:
if (isset($this->db->conn_id) && is_resource($this->db->conn_id)) {
echo 'database is loaded and conected';
}
Is this the most effective way?