Category: CodeIgniter

Connecting to Multiple Databases in CodeIgniter

codeigniter

You can connect to more than one database simultaneously in CodeIgniter. In the database.php (inside application/config folder) file, you will find the following default database connection code. $active_group = ‘default’; $active_record = TRUE; $db['default']['hostname'] = ‘localhost’; $db['default']['username'] = ”; $db['default']['password'] = ”; $db['default']['database'] = ”; $db['default']['dbdriver'] = ‘mysql’; $db['default']['dbprefix'] = ”; $db['default']['pconnect'] = TRUE; $db['default']['db_debug'] […]

Read More →

CodeIgniter “No input file specified.” error in GoDaddy shared hosting [Solved]

codeigniter

Many programmers are facing “No input file specified.” while hosting a CodeIgniter application in GoDaddy shared server. Even I also faced the same problem last week. Here is a quick solution to fix the “No input file specified.” error. Before solving the problem, make sure that you have following configurations in /application/config/config.php file in your application. $config['index_page'] […]

Read More →

How to remove index.php from URLs in CodeIgniter

codeigniter

For Localhost / VPS / Dedicated Hosting Open the httpd.conf Find LoadModule rewrite_module modules/mod_rewrite.so Remove # from the beginning of the line Find AllowOverride then change to be <Directory /> AllowOverride All Order deny,allow Deny from all </Directory> Save and restart Apache Create a .htaccess file at the root directory #Rewrite index.php #Start using rewrite […]

Read More →