Documentation

Loader extends CI_Loader
in package

Loader Class.

Table of Contents

Methods

database()  : DB|Loader|false
Database Loader.

Methods

database()

Database Loader.

public database([mixed $config = '' ][, bool $return = false ][, mixed $queryBuilder = null ]) : DB|Loader|false
Parameters
$config : mixed = ''

(optional) Connection group name or database configuration options.

$return : bool = false

(optional) Whether to return a DB instance. Default is false.

$queryBuilder : mixed = null

(optional) An instance that overrides the existing CI_DB_query_builder.

Return values
DB|Loader|false

Database object if $return is set to true, false on failure, Loader instance in any other case.


        
On this page

Search results