Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Capturando las excepciones de conexión a la BD en KumbiaPHP
<?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
You can’t perform that action at this time.