backup_cdi - SPLessons

CodeIgniter Basic Configurations

Home > Lesson > Chapter 5
SPLessons 5 Steps, 3 Clicks
5 Steps - 3 Clicks

CodeIgniter Basic Configurations

CodeIgniter Basic Configurations

As mentioned in above lessons about the 'config ' folder, in this folder we can configure the database, routing, home controller, email if any and etc. Each configuration files is used to configure many things like below. 'Config.php' --- to config base url of your application [php] $config['base_url']= "localhost/youappname/'; [/php] 'database.php' -- to configure the database if any [php] $db['default']['hostname'] = 'localhost'; $db['default']['username'] = 'root'; $db['default']['password'] = ''; $db['default']['database'] = my_dbname; $db['default']['dbdriver'] = 'mysql'; [/php] 'routes.php' --- to configure the default controller [php] $route['default_controller'] = "my_controller"; [/php] like these we have more configuration files are there in config folder.