Created
March 11, 2013 21:12
-
-
Save manuelj555/5137799 to your computer and use it in GitHub Desktop.
Capturando las excepciones de conexión a la BD en KumbiaPHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @see KumbiaActiveRecord | |
*/ | |
Load::coreLib('kumbia_active_record'); | |
/** | |
* ActiveRecord | |
* | |
* Esta clase es la clase padre de todos los modelos | |
* de la aplicacion | |
* | |
* @category Kumbia | |
* @package Db | |
* @subpackage ActiveRecord | |
*/ | |
class ActiveRecord extends KumbiaActiveRecord | |
{ | |
protected function _connect($new_connection = false) | |
{ | |
try{ | |
parent::_connect($new_connection); | |
}catch(Exception $e){ | |
Logger::error("Error de conexión a la Base de Datos ..."); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment