Пример #1
0
 function __construct()
 {
     c_lib()->load('sql');
     $this->driver = new Sql(cfg()->get('database'));
     if (!$this->driver->status()) {
         define('HAS_RUN_ERROR', true);
         cfg()->set('HAS_RUN_ERROR', $this->driver->ex_message());
     }
 }