59 $config = \Config::get("db.{$name}"); 60 } 61 62 if ( ! isset($config['type'])) 63 { 64 throw new \Fuel_Exception("Database type not defined in {$name} configuration"); 65 } 66 67 // Set the driver class name 68 $driver = 'Fuel\\Core\\Database_'.ucfirst($config['type']).'_Connection';
public static function get($item, $default = null) { if (isset(static::$items[$item])) { return static::$items[$item]; } if (strpos($item, '.') !== false) { $parts = explode('.', $item); switch (count($parts)) { case 2: if (isset(static::$items[$parts[0]][$parts[1]])) // Line 144 { return static::$items[$parts[0]][$parts[1]]; } break;
It looks like you're new here. If you want to get involved, click one of these buttons!