Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fly2006zhao/codeigniter-database-standalone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

6 Commits

Repository files navigation

#Codeigniter Database

Use the Database Library separately from CodeIgniter 3.

Installation

###With Composer

"require": {
 // ...
 "evolution/codeigniterdb": "dev-master"
}

###Without Composer

You can also download it from Github, but no autoloader is provided so you'll need to register it with your own PSR-0 compatible autoloader.

#Usage

<?php
use Evolution\CodeIgniterDB as CI;
$db_data = array(
	'dsn'	=> '',
	'hostname' => 'localhost',
	'username' => 'root',
	'password' => 'my_password',
	'database' => 'my_database',
	'dbdriver' => 'mysqli',
	'dbprefix' => '',
	'pconnect' => FALSE,
	'db_debug' => TRUE,
	'cache_on' => FALSE,
	'cachedir' => '',
	'char_set' => 'utf8',
	'dbcollat' => 'utf8_general_ci',
	'swap_pre' => '',
	'encrypt' => FALSE,
	'compress' => FALSE,
	'stricton' => FALSE,
	'failover' => array(),
	'save_queries' => TRUE
);
$db =& CI\DB($db_data);

For more information visit CodeIgniter user guide.

About

Databse Library separately from CodeIgniter 3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

  • PHP 99.7%
  • HTML 0.3%

AltStyle によって変換されたページ (->オリジナル) /