Once we managed to
install Codeigniter, then the next step is to do some configuration files.
Configuration is done on the folder / system / application / config /. Some of
the files that should be configured are:
1.
config.php
Can we change the configuration of this file is the
base url used to call the browser address.
$ config ['base_url'] =
"http://situsname.com";
By adjusting this configuration we do not need a
complete rewrite url address us. We simply call the function base_url. If we
will transfer the address on the address of another server, then we must change
the base_url with default values:
$ config ['index_page'] =
"index.php"
2.
autoload.php
File is used to specify the resource that will be
loaded by otoatis by Codeigniter.
$ autoload ['libraries'] = array
('database', 'session', 'pagination');
$ autoload ['helper'] = array
('url', 'file');
$ autoload ['plugin'] = array ();
$ autoload ['config'] = array ();
$ autoload ['language'] = array ();
$ autoload ['model'] = array ();
3.
database.php
Is a file that contains all the database-related. In
database.php file that needs to be configured are:
a. hostname
b.username
c. password
d. databasename
e. dbdriver
4.
routes.php
File is used to set the remap request URL that
points to a function in a controller.
Once we managed to
install and configure multiple files, try to open the folder Codeigniter us. If
the configuration is done right, then we will go on the welcome page.
No comments:
Post a Comment