Sample script demonstrating a CodeIgniter login In application/config/autoload.php Autoload helpers
$autoload['helper'] = array('url','common');
Autoload libraries
$autoload['libraries'] = array('database','session');
Database you want to add the your database details in applicationconfig/database.php
$db['default'] = array( 'dsn' => '', 'hostname' => 'localhost', 'username' => 'root', 'password' => '', 'database' => 'tbo', 'dbdriver' => 'mysqli', 'dbprefix' => '', 'pconnect' => FALSE, 'db_debug' => (ENVIRONMENT !== 'production'), 'cache_on' => FALSE, 'cachedir' => '', 'char_set' => 'utf8', 'dbcollat' => 'utf8_general_ci', 'swap_pre' => '', 'encrypt' => FALSE, 'compress' => FALSE, 'stricton' => FALSE, 'failover' => array(), 'save_queries' => TRUE );
Login screen url will be :
http://yourdoamain.com/myfolder/index.php/login