Skip to content

Instantly share code, notes, and snippets.

@manuelj555
Created March 11, 2013 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manuelj555/5137799 to your computer and use it in GitHub Desktop.
Save manuelj555/5137799 to your computer and use it in GitHub Desktop.
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