linux - codeigniter autoload file issue -


i have uploaded codeigniter file in linux server using php version 5.5. got issue on application\config\autoload.php file.

$autoload['libraries'] = array(); //default code //$autoload['libraries'] = array('database'); 

when run program using default code. program runs fine. when load database library, didn't error or output. shows blank page.

you can check here.

sample code:

class test extends ci_controller {        function show() {            echo 'methos call';     } } 

this program runs in local without issue. server problem or codeignitor issue.

thanks

in autoload.php file change

$autoload['libraries'] = array('database') 

then go database.php , configure database.(bottom of page).

if codeignitor 2.0.0

$db['default']['hostname'] = 'localhost'; $db['default']['username'] = ''; $db['default']['password'] = ''; $db['default']['database'] = '';//database name $db['default']['dbdriver'] = 'mysql'; $db['default']['dbprefix'] = ''; $db['default']['pconnect'] = true; $db['default']['db_debug'] = true; $db['default']['cache_on'] = false; $db['default']['cachedir'] = ''; $db['default']['char_set'] = 'utf8'; $db['default']['dbcollat'] = 'utf8_general_ci'; $db['default']['swap_pre'] = ''; $db['default']['autoinit'] = true; $db['default']['stricton'] = false; 

if codeignitor 3.0.0

$db['default'] = array(     'dsn'   => '',     'hostname' => 'localhost',     'username' => '',     'password' => '',     'database' => '',//database name     '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 ); 

if correct these should work fine.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -